Multiple Condition on the Same Input
This example shows how you can apply multiple conditions to a single input. In this example if you check off fruit cake or ice cream different things happen. Multiple conditions have been applied to the checklist to get this result.
Here's the plugin code used for this example.
var fValidate = $.parselyConditions({
formname: 'customForm',
validationfields: [
{
fid: 'formTrigger',
ftype: 'checklist',
fvalue: 'Fruit Cake',
faffected: false,
fhide: 'warning'
},
{
fid: 'formTrigger',
ftype: 'checklist',
fvalue: 'Ice Cream',
faffected: 'flavour',
fhide: 'maskDiv'
},
],
});