Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Jump to particular input field

Avatar

Former Community Member
Hi, I created a PDF which has a validation method just after the printbutton is pressed. That's all implemented, but now comes the hard part: What I would like is that when the validation returns errors, the PDF jumps to the first input field that produces the error. Is this at all possible to let the PDF jump to another page or input field? If so, could you please push me into the right direction? Thanks in advance!
2 Replies

Avatar

Former Community Member
You would need to code the command:



xfa.host.setFocus("FieldName");



When this executes your cursor will move to the named field.

Avatar

Former Community Member
Thanks a lot for the (amazingly) fast reply! I'll try it out immediately.