Difference between revisions of "Change Checkbox Value Script"

From AgileApps Support Wiki
imported>Evelyn
(New page: Change the value of a checkbox field to <tt>True</tt> based on an integer meeting some criteria. <pre> if(form.contract_amount.value > 100000) { form.approved_for_loan.checked = true...)
 
imported>Aeric
Line 1: Line 1:
Change the value of a checkbox field to <tt>True</tt> based on an integer meeting some criteria.
Change the value of a checkbox field to <tt>True</tt> based on an integer meeting some criteria.
 
:{|
<pre>
<pre>
if(form.contract_amount.value > 100000)
if(form.contract_amount.value > 100000)
Line 7: Line 7:
}
}
</pre>
</pre>
|}

Revision as of 19:04, 20 July 2011

Change the value of a checkbox field to True based on an integer meeting some criteria.

if(form.contract_amount.value > 100000)
{
     form.approved_for_loan.checked = true;
}