Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Setting Checkbox value in a script


This topic is 7270 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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

Posted

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

Posted

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

This topic is 7270 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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