Hi,
I like to know, how to implement the set focus method in the Adobe live cycle.
When the user loads a form, it should redirect him to the TEXT BOX in the 3rd Page.
On the INITIALIZE of the main form, i wrote this command -- xfa.host.setFocus(" ----Path of the text box----");
but it doesnt work... Can anyone help me??????/
Solved! Go to Solution.
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi,
I'd say that your script is OK, it is just firing too soon. Try putting it in the docReady event.
N.
Views
Replies
Total Likes
hi..
remember setfocus() event doesn't work for initialize, form:ready and Layout:ready events. May be you can try the event in Form:enter or doc:ready events as suggested.
kc
Views
Replies
Total Likes
I think you have to use app.setTimeOut() to get it to work, it gives the form a chance to render.
You'll have to hunt around for the syntax (I think there's some references in the forum) I've not used it myself.
Jono is correct.
The xfa.setFocus command is merely a wrapper to the app.setFocus Acrobat command. At startup the xfa and Acroforms levels are not complete until the form is totally loaded. Hence when you execute an xfa.setFocus command the AcroForm is not ready yet. So we have to use the app.setTimeOut command to execute the command in the future (after the form is ready). I have created a sample and attached it here. The code is on the form1 object's docReady event. I use a setTime out to call an Acrobat setFocus command. Note that you have to use an Acroform reference to the object and not an xfa one.
Paul
Thanks for all the valuable suggestions guys.. I will try implementing it.
@ pguerett:
I am unable to access the file u have attached. Can u please try reattaching it......
Thanks
Sun
Views
Replies
Total Likes
It will take a bit of time for the queued to be cleared. Once that happens you can get it. If you woudl rather post your email address I can send it to you that way.
Paul
Views
Replies
Total Likes
Paul,
anuraag.111@gmail.com
this is my mail id...
Thanks,
Sun
Views
Replies
Total Likes
Just sent it
Paul
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies