Difference between revisions of "Change Checkbox Value Script"
From AgileApps Support Wiki
imported>Aeric |
imported>Aeric |
||
Line 1: | Line 1: | ||
Change the value of a checkbox field to <tt>true</tt> when the request amount is large enough. | 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.request_amount.value > 10000) { | if(_sdForm.request_amount.value > 10000) { | ||
setCheckboxState(_sdForm, "approval_required", true); | setCheckboxState(_sdForm, "approval_required", true); | ||
} | } | ||
</ | </syntaxhighlight> | ||
Revision as of 22:27, 21 May 2014
Change the value of a checkbox field to true when the request amount is large enough.
- <syntaxhighlight lang="javascript" enclose="div">
if(_sdForm.request_amount.value > 10000) {
setCheckboxState(_sdForm, "approval_required", true);
} </syntaxhighlight>