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

Any way to indicate WHICH required field has been missed?

poregon
Registered: Oct 27 2008
Posts: 80

I have a form that I have restricted from printing (with the PrePrint validate element) - if a required field is not completed, ALL required fields are outlined in red along with the messagebox "At least one required field is empty....blahblahblah"
Is there any way to have the cursor jump to the missing field, or in any other way indicate WHICH field hasn't been completed?

Thanks again

poregon
Salix, Iowa

My Product Information:
LiveCycle Designer, Windows
Bamboolian
Registered: Jul 27 2010
Posts: 48
Hi,

What I used to do for my preSign event was,
1. loop through the field objects that needs to be checked
2. check property "mandatory" has "error" (which means that field is requiered field) for each object
3. check "rawValue" has value set or not for required field.
4. If no value set, then output empty message where you can maintain in [Object] ->[value] tab using "mandatoryMessage" property for the object.to set the focus to the field object should be

xfa.host.setFocus(object);

Unfortunatly I lost the script now so I can't provide you the actual one, but thought it might give you a clue.
poregon
Registered: Oct 27 2008
Posts: 80
Did you hear that?? That was the sound of this reply going right over my head at nearly Mach 2.
I sure appreciate it Bamboolian - and I hope it can help others - but if somebody reads this and can map it out a little more in script form (I don't even know how to loop (- eh.....that's Step One, there, Pat - ), that would be awesome - or if you find your script, Bamboolian.....but I sure know how that goes.

Thanks man.

poregon
Salix, Iowa

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
You have to loop through each required field and see if it has been completed.

When you find the first field that is required and not completed then you can force the focus to that field.

The code has been provided, but you will have to use the value of the field name you found with your script.

George Kaiser

cl5792
Registered: Jul 17 2008
Posts: 53
Was the script for this ever posted? It would be very helpful.

Thanks,