Difference between revisions of "Change Checkbox Value Script"
From AgileApps Support Wiki
imported>Aeric |
imported>Aeric |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Change the value of a checkbox field to <tt> | Change the value of a checkbox field to <tt>true</tt> when the request amount is large enough. | ||
: | :<syntaxhighlight lang="javascript" enclose="div"> | ||
< | if(_sdForm[0].request_amount.value > 10000) { | ||
if( | setCheckboxState(_sdForm, "approval_required", true); | ||
{ | |||
} | } | ||
</ | </syntaxhighlight> | ||
Latest revision as of 08:31, 12 December 2016
Change the value of a checkbox field to true when the request amount is large enough.
if(_sdForm[0].request_amount.value > 10000) { setCheckboxState(_sdForm, "approval_required", true); }