Example of Nested Conditions
This example shows how you can nest conditions. Selecting "No" shows more fields and adds additional validation. Checking off "No" also toggles multiple DOM elements on and off. Lastly, checking off "business" adds another field and more validation.
Here's the plugin code used for this example.
var fValidate = $.parselyConditions({
formname: 'customForm',
validationfields: [
{
fid: 'formTrigger',
ftype: 'radio',
fvalue: 'different',
faffected: ['address','type'],
fhide: ['maskDiv','maskDiv3']
},
{
fid: 'type',
ftype: 'checkbox',
fvalue: 'business',
faffected: 'hours',
fhide: 'maskDiv2'
}
],
});