These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Custom format script to allow only one answer?

CloveRock
Registered: Jan 12 2009
Posts: 6

Hi guys,

I'm trying to create a form for children in which they fill out a worksheet and submit it. There will be a number of pictures and a blank space in which they must fill out the answer.

Is it possible to run a custom format script on a text field to allow only the required word be entered on which a popup says "Correct!" and if a wrong answer is entered says "Try Again".

I know I can enter the answer as an "Arbitrary Mask" but this gives the warning " The value entered does not match the format of the field "answer"" which is not really kidfriendly and also gives away the answer.

Any help would be greatly appreciated..

Thank You

My Product Information:
Acrobat Pro 8.1.2, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi CloveRock,

Yes, this can be done with a validation script (a formatting script is the wrong way to go. With a formatting script you can create th popup but you cannot block the entry).

Hope this helps,

Dimitri
WindJack Solutions
www.windjack.com
www.pdfscripting.com
CloveRock
Registered: Jan 12 2009
Posts: 6
Thanks for your reply, I'm new to acrobat and haven't a clue about how to write a validation script. Can anyone help?