Hello all.
I added the following javascript to 3 elements that all relate to the change of state of a yes/no element on the same form record; but when any of the changes are made nothing changes on the yes/no element. Not sure why.
Any suggestions.
Thanks in advance.
I added the following javascript to 3 elements that all relate to the change of state of a yes/no element on the same form record; but when any of the changes are made nothing changes on the yes/no element. Not sure why.
Code:
var $materialstatus = $('bw_projects___material_status');
var $permitstatus = $('bw_projects___permit_status');
var $drstatus = $('bw_projects___d_r_status');
if (($materialstatus == '4') && (($permitstatus == '1') || ($permitstatus == '5')) && (($drstatus == '1') || ($drstatus == '4'))) {
this.form.formElements.get('bw_projects___ready_to_schedule').update('1');
}
Any suggestions.
Thanks in advance.