December 29, 200421 yr 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.
December 29, 200421 yr 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 . 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 "AB" as the value passed. HTH, Jerry
December 29, 200421 yr 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
December 29, 200421 yr 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