Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

auto checking a value in a checkbox value list

Featured Replies

Can anyone enlighten me on this subject.

I am trying to introduce a field with value list as check boxes - the first checkbox needs to be checked by default but i cannot seem to be able to figure out how this is done.

Any suggestions would be greatly appreciated.

When you define the field, open options and Auto-Enter data - enter the choice that you want to be checked.

  • Author

quote:

Originally posted by dspires:

When you define the field, open options and Auto-Enter data - enter the choice that you want to be checked.

I have already tried this. Is there some kind of syntax I need to encapsulate my choice?

none required just make sure that it matches the enrty in your value list - include the carriage return afterwards.

You shouldn't need a carriage return at the end. The value list entry won't include a carriage return and FMP ignors them anyway except as a delimiter character between items (like multiple selected items in a checkbox).

Check the typing is exactly the same, then make a *new* record. The preselected option will only appear on new records (that's how auto-enter works).

  • Author

Cheers for the advice. It does now work with NEW records!!

To auto check the box on old records I assume I will have to import somehow the old records into a duplicate database to get them to auto check the box i need checked.

Will this affect the other boxes that are checked?

Create a script to add the field entry to the field:

Loop

Set Field["field","the entry wanted" & "|P" & "field"] (the '|P' is a return)

Go to Record/Request/Page [Exit after last, Next]

End Loop

Find all of the records that don't have that entry in the field (using omit).

Go to the first record and run the script.

[This message has been edited by dspires (edited October 26, 2000).]

  • Author

Excellent that has worked....not sure if this is what my boss wants but it's what he asked for....brilliant...I owe you one!!

This script changes the contents of the field in all the records to a new (fixed) value. Think carefully (and make a backup) before you perform this script as you will be irreversibly modifying your database records.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.