8,849
edits
Changes
→To validate against a different custom field
frm.cf_@Project Budget.id@.value>=@value@
==To make a field conditionally mandatory==
If you wish to make a field mandatory ''only if'' the value ''Yes'' is selected from a dropdown field, for example, use:
@value@!="" or frm.cf_''fieldid''.value="No"
in the JavaScript validation setting where:
* ''fieldid'' is the [[Custom Field ID|custom field ID]] of the dropdown field
==See Also==