Answered
Hi all,
I was hoping someone could help me, any help would be greatly appreciated:-)
I have a text field called "userAnswer" which the user enters their answer in, i then have a field called "userScore"
I am trying to create a validation script that if the user enters the words 50% anywhere inside the userAnswer text field, then the userScore field will display "Correct".
Any help would be great, thank you:–)
if (event.value && event.value.match("50%")!=null) {
this.getField("userScore").value = "Correct";
} else this.getField("userScore").value = "";
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com