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.

Setting Checkbox value in a script

Featured Replies

I can not remember how to set a checkbox value in a script.

I need to be able to make a checkbox be (checked) within the script.

Any ideas that can jog my memory would be much appreciated.

Hi Mike, and welcome to the Forums!

Setting a checkbox value is no different than setting any other field. Just use the Set Field command.

Bear in mind that if you are trying to set two values, you will need to separate them with a par.gif. Thus, if your checkbox value list is "A","B","C" and you want to set both "A" and "B" as checked, you will need to supply "Apar.gifB" as the value passed.

HTH,

Jerry

  • Author

Jerry,

Thank you for the insight.

Let me show you what I have been trying with no luck.

In the script:

SetField(_checkbox_name, ""value"")

where _checkbox_name is the define field name, and value is the value given in the defined value list(which is just one value, "Pay Commission")

The actual code reads:

SetField(_ready_to_pay_commission, ""Pay Commission"")

But will not set the checkbox to be checked.

Mike

  • Author

Okay!

It works....

After looking at the value list, I found that I accidentally put a space in front of the value "Pay Commission". It looked like " Pay Commission".

So, when trying to use Set Field command it would not set the field because I was trying to set "Pay Commission".

Thank you for you help.

Mike

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.