AgileApps Support Wiki Pre Release

Change Checkbox Value Script

From AgileApps Support Wiki
Revision as of 08:31, 12 December 2016 by imported>Aeric
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

<syntaxhighlight lang="javascript" enclose="div">

if(_sdForm[0].request_amount.value > 10000) {

   setCheckboxState(_sdForm, "approval_required", true);

} </syntaxhighlight>