Focus on opening

Avatar

Avatar

SciMax

Avatar

SciMax

SciMax

27-05-2009

Is it possible to automatically focus on a specific field when a LiveCycle PDF is opened? 

If yes, what script or formcalc and event type should I use?   And last, where do I put the event on the hierarchy?

I tried to put the following script in the first subForm on the body page 1 level.  Please note the object I want to focus on is part of a fragment.

xfa.host.setFocus("DeptDiv.ddlCityDept");

But I was blocked from doing so.  I get this error message and the entire Script Editor window was greyed out.

"The script is not editable because the Script Editor contains script that is in a fragment."

Any assistance would be really appreciated.

Thanks.

View Entire Topic

Avatar

Avatar

SciMax

Avatar

SciMax

SciMax

28-05-2009

Oops.... I'm showing my age eh? I'll have to come up with some fancy acronym to use instead. How does PDFCP sound? ( poor defenceless form completer person)

This worked perfectly (woo hoo)!

BTW: I just learned something else interesting -- when I expand the Script Editor window to allow for multi-line viewing I get that script error message and it won't let me enter anything into any event. However, if I only set the Editor to a single line -- it lets me enter my code!! Hah... should have know the engineers would figure a way around things eh?? Pretty tricky

Thanks so much for your help! ….b