I just want to use Javascript (action builder has fits over multiple "trigger" conditions). For previous if/then statements I've just used .rawvalues of radio buttons and checkboxes. Now, I want the event to happen (navigating to page x) when the next button is clicked AND with a checkbox value of 1.
I know about && to join conditions, I just don't know how to code in a rawvalue for an OK button.
Is there a clean way to do this? I don't want to have a dozen Ok buttons occupying the space and becoming visible given a checkbox value. That sounds a bit clunky. I'd appreciate any help!
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
Buttons don't hold values--you can't assign a value to a button.
You normally place a script on it's click event, some solutions for you would be
TextField1.execCalculate(); at the end of the script.
Here's an example:
///////////////////////////////////////////////////////////////////////////////
form1.#subform[0].Button1::click - (FormCalc, client)
$.fillColor = "255,255,255" //button click changes its own fillColor
TextField1.execCalculate() //then fires the script below
/////////////////////////////////////////////////////////////////////////////
form1.#subform[0].TextField1::calculate - (FormCalc, client)
if(Button1.fillColor == "255,255,255")then //checks button fillColor
$ = "yes" //does something
else
$ = "no" //or does something
endif
/////////////////////////////////////////////////////////////////////////////
Hope this helps!
Stephen
Views
Replies
Total Likes
Hi,
Buttons don't hold values--you can't assign a value to a button.
You normally place a script on it's click event, some solutions for you would be
TextField1.execCalculate(); at the end of the script.
Here's an example:
///////////////////////////////////////////////////////////////////////////////
form1.#subform[0].Button1::click - (FormCalc, client)
$.fillColor = "255,255,255" //button click changes its own fillColor
TextField1.execCalculate() //then fires the script below
/////////////////////////////////////////////////////////////////////////////
form1.#subform[0].TextField1::calculate - (FormCalc, client)
if(Button1.fillColor == "255,255,255")then //checks button fillColor
$ = "yes" //does something
else
$ = "no" //or does something
endif
/////////////////////////////////////////////////////////////////////////////
Hope this helps!
Stephen
Views
Replies
Total Likes