This configuration will allow enable/disable sections of a form based on some inputs on the form. Some sections of the form that are only filled when a particular set of information is needed. Thus if we disable such fields, this can simplify data entry into the form and make the form much less confusing.
Example
'Diastolic Data' : function (formName, formFieldValues) {
var systolic = formFieldValues['Systolic'];
var diastolic = formFieldValues['Diastolic'];
if (systolic || diastolic) {
return {
enable: ["Posture"]
}
} else {
return {
disable: ["Posture"]
}
}
}