We have forms that use pure JS – no rules in dffs back-end.
I would like to leverage the Group ID functionality to bulk control groups of fields / headers, etc. in the form (hide this group, show that group, read only this group, etc.)
I am familiar the following custom js for working with a single column but I seem to be missing some syntax for the group id method above for group ID:
You must use the fin variable in the loop like this:
jQuery.each(spjs.dffs.data.dffsDataObj.data.groupToFin.YOUR_GROUP_NAME, function(i, fin){
// do something with fin here
console.log(fin);
jQuery("#dffs_" + fin).hide();
spjs.dffs.flag_Mandatory([fin]);
});