Hi all,
In CF3 running on Joomla, I am able to do a dynamic validation using the code below
What would be the CF5 on WordPress equivalent to this? I'm aware about the FAQ regarding Custom Validation and it is working great on most of my forms. It is just this one form that I'm currently working on has so many variables that affects which field is required and which field are not required. I can go use the samples on the FAQ but debugging 250 lines of if/else logic would be difficult. So I'm planning to just call the function with the concerned fields to apply the validation as needed.
Thanks
In CF3 running on Joomla, I am able to do a dynamic validation using the code below
function makeRequired(el){
el.addClass(req);
formCheck_FormName.register(el);
}
function makeOptional(el){
el.setProperty('class', '');
formCheck_FormName.removeError(el);
formCheck_FormName.dispose(el);
}
What would be the CF5 on WordPress equivalent to this? I'm aware about the FAQ regarding Custom Validation and it is working great on most of my forms. It is just this one form that I'm currently working on has so many variables that affects which field is required and which field are not required. I can go use the samples on the FAQ but debugging 250 lines of if/else logic would be difficult. So I'm planning to just call the function with the concerned fields to apply the validation as needed.
Thanks