Bell Boy Posted December 29, 2004 Posted December 29, 2004 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.
QuinTech Posted December 29, 2004 Posted December 29, 2004 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
Bell Boy Posted December 29, 2004 Author Posted December 29, 2004 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
Bell Boy Posted December 29, 2004 Author Posted December 29, 2004 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now