I've used the following script on individual radio buttons to allow users to deselect an active group; however, I currently have a form with over 100 existing radio buttons that do not have the script added. Rather than manually add the script to each radio button individually, I was wondering if there's a way to create function of sorts that will allow global treatment.
Script used on single radio button via click event
// If Shift button is held while clicking radio button, clear selection
if (xfa.event.shift){
this.rawValue = "";
}
I presume the function would need to cycle through all objects throughout the form and those with the className as "exclGroup" (i.e. radio button) would be impacted by the script thus allowing deselection.
Any help is much appreciated!