Changes

Jump to: navigation, search

JavaScript Validation

2 bytes removed, 20:28, 12 March 2014
To make a check box field conditionally mandatory
If there is a check box field under a show hide header and you wish to make this check box field mandatory ''only if'' the value ''Yes'' is selected from a dropdown field, Paste JavaScript below in the JavaScript Validation field on the "Select Many - Check Boxes" field type:<br />
isChkSelected(frm.cf_''fieldid'') || frm.cf_''fieldid''.value!="Yes":<br />
  in the JavaScript validation syntax where<br />
1) isChkSelected(frm.cf_''fieldid'')= this (frm.cf_''fieldid'') is the field id of the check box field to be made conditionally mandatory.<br />
2) frm.cf_''fieldid''.value= this cf_''fieldid'' is the [[Custom Field ID|custom field ID]] of the dropdown field.<br />
38
edits

Navigation menu