Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Enabling rights is canceling scripting - help please!

Avatar

Not applicable
After some frustrating time I finally was able to get scripting to work on this last part of my form. I wanted a radio button (stand alone) and a text box. If the radio button was clicked, then the text box was no longer required. If the radio button was not clicked then the text box was required in order to submit.



Here is the coding I am using (all java script):



In the exit line of the PhotoOnlyEngraving field is:



Engraving.validate.nullTest = "disabled";



In the presubmit line of the Engraving field is:



if (PhotoOnlyEngraving.rawValue == null || PhotoOnlyEngraving.rawValue == "")

{Engraving.validate.nullTest = "disabled";

}



else



(Engraving.rawValue == null || Engraving.rawValue == "") { {

app.alert("Please include details required for Engraving");

xfa.host.setFocus("Engraving");

}

}



Works great (accept the alert message) until you enable rights with the form. Then it ignores the script and forces you to add text in the engraving field when you have already clicked the PhotoOnly field. This is the only item that seems to be disabled in all the java script.



Any help with this would be great! I'm really stuck trying to finish a form that is now 4 days past due.



Thanks!

Lezli
1 Reply