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

setfocus on Dropdown

Lina Sap
Registered: Mar 29 2011
Posts: 4

Hi all,
 
I am creating an Adobe interactive form .
I am applying setfocus() on multiple fields.
But my code for this method is creating problem when this is applied to the two dropdowns one after the other.
The problem is that when one leaves the first dropdown blank and enters into the other dropdown(setfocus applied on this also)
the error message pops out for the first ,and it pulls the cursor back to the first dropdown.
But as second dropdown is also mandatory and is blank at that time it will show warning for that also.
So in this manner my form is getting into unavoidable loop.
So please help me to solve this issue.
 
Thanks,
Lina khanna

Thanks & Regards,
Lina

My Product Information:
LiveCycle Designer, Windows
DaveyB
Registered: Dec 10 2010
Posts: 70
Instead of error checking on each field separately, make a single error checking script which checks both fields for errors and sends the user to the first field that has an error. This will avoid the recursive loop whilst retaining error checking on both fields.

Hope that helps!

Dave

LiveCycle Designer 8.0
"Genius is one percent inspiration, ninety-nine percent perspiration." ~~ Thomas Edison
"If at first you don't succeed, get a bigger hammer." ~~ Alan Lewis
"If the conventional doesn't work, try the unconventional" ~~ DaveyB

Lina Sap
Registered: Mar 29 2011
Posts: 4
Hi Dave,

I am not very clear with the solution.
Can you please send me the script for the same.




Thanks & Regards,
Lina

Lina Sap
Registered: Mar 29 2011
Posts: 4
Hi Dave,

I am not very clear with the solution.
Can you please send me the script for the same.




Thanks & Regards,
Lina