Expand my Community achievements bar.

Jumping to a particular question

Avatar

Former Community Member

Hi clever people.  I have a form where the form filler clicks a Yes/No radio button.  If they click Yes, I want the form to take them automatically to a particular question instead of having to put in the text "If you answered yes, please go to question xx".  There will be multiple occurrences. Can anyone tell me how to do this?

Many thanks

2 Replies

Avatar

Level 10

You can use the setFocus method to move to a particular field, something like;

xfa.host.setFocus(Page2.TextField1);        // for Reader 8.1 and later

or

xfa.host.setFocus(Page2.TextField1.somExpression);        // for Reader 8.0 and before

Avatar

Former Community Member

Thank you very much.

From:

BR001 <forums@adobe.com>

To:

Dale Higgins <d.higgins@aciltasman.com.au>

Date:

15/10/2010 01:26 PM

Subject:

Jumping to a particular question

You can use the setFocus method to move to a particular field, something

like;

xfa.host.setFocus(Page2.TextField1); // for Reader 8.1 and later

or

xfa.host.setFocus(Page2.TextField1.somExpression); // for Reader

8.0 and before