I have a radio button group that makes other subforms visible or hidden. I would like to put the JavaScript in the Script Object so I can use it in more than one location. Below is a sample of the JavaScript I use.
if(this.rawValue==0)
{Subform1.presence="hidden";
Subform2.presence="hidden";}
if(this.rawValue==1)
{Subform1.presence="visible";
Subform2.presence="hidden";}
if(this.rawValue==2)
{Subform1.presence="hidden";
Subform2.presence="visible";}
My problem is that I am not a programmer and have spent about a week trying to figure this out on my own. I need to know what I need to change and the additional JavaScript code that I need in the Script Object and the Radio Button Group to make this scenario work.
Any help would be greatly appreciated.
Thanks
Carol
if you called it ValidationScripts and the function you need to call is names isNumeric
then, in your object code you'd call it like so: ValidationScripts.isNumeric