Change Checkbox Value Script

From LongJump Support Wiki
Revision as of 22:49, 2 December 2008 by 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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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;
}