AgileApps Support Wiki Pre Release

Difference between revisions of "Change Checkbox Value Script"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
Line 2: Line 2:
:{|
:{|
<pre>
<pre>
if(_sdForm.request_amount.value > 10000)
if(_sdForm.request_amount.value > 10000) {
{
    setCheckboxState(_sdForm, ”approval_required”, true);
    _sdForm.approval_required.checked = true;
}
}
</pre>
</pre>
|}
|}

Revision as of 23:17, 28 June 2013

Change the value of a checkbox field to true when the request amount is large enough.

if(_sdForm.request_amount.value > 10000) {
    setCheckboxState(_sdForm, ”approval_required”, true);
}