Did you include the document level function "goNext"?
This is pretty hard to diagnose without seeing the form . Can you post a link to a sample form with the issue?
I'm using the "goNextAlpha" function in the keystroke portion of the script.
I will try and export the page for posting.
See Form event processing flowchart. Each step is completed before the next step is processed. So your custom keystroke script is completely processed before the validation script is processed. If you want the prefix for the focused field, you need to execute your script before the custom format script or within the custom format script before calling the goNext function.
My employer will not allow the uploading of the file. The script above is what has been inputted, based on what you see, what can I do, or what additional script is needed.
Basically, I have 12 single entry fields that once the field is filled it goes to the next field. If I spawn additional pages it works fine as long as you complete forms in order. There are times the Forms need to be completed in different order and when doing so when you fill field 1 of page three it then goes to field 2 page 1 and then back to field 3 page 3.
I appreciate all your help.
Your code for the custom keystroke has finished executing before your validation code, so you are using the "P#.TemplateName." prefix value form a previous form field.
You should be computing the "P#.Temppate." prefix value in the same action where you are calling and before calling the "GoNextAlpha" function. Please review the linked page that shows the execution order of the various actions for the field object.