Skip 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.

Toggle Contents of Checkbox Field

Featured Replies

OK, without going into a lengthy explanation, I have a field which is formatted as a checkbox. I am going to place a button over each value list item that will enter that value into the field. That way the checkbox shows up next to that value. I am doing this to have a scriopt perform for each checkmark. I thought I was really spiffy, then I realized that I could mark a checkbox, but how do I un-mark a checkbox? I though about clear, but if there are other values, I dont want those cleared, just the one value.

I hope it makes sense. If you need more info, let me know. Thanks for the help.

Ken

Try this

If["Patterncount(Checkbox,"YourValue")=0"]

Set Field["Checkbox","Checkbox&"

  • Author

AAH, Substitute, yes, that's it! I've used it a hundred times in calc fields, I didnt think of scripts!

Thanks!

Ken

  • Author

I changed it slightly because of the nature of the Set Field [ ] command. It will select the entire contents and thus clear any other info in the field. However, if the field is already selected, or entered and the script is run, it will work. So I changed it to Insert Calculated Result [ ] and unchecked Select Entire Contents. Seems to work more consistently.

Thanks again.

Ken

No problem, thanks for the info on the modification to the script.

Steve

Steve's original method should work because it appends the value to the existing checkbox contents. It doesn't overwrite.

Using the insert calculated result command is kind of flaky because it can fail if you have the "allow entry to field" de-selected.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.