Expand my Community achievements bar.

Creating a form with a skip pattern (skip logic)

Avatar

Level 1

Hello - Using LifeCycle Designer 7.0

I am creating a form with a simple: Yes/No radio button for one field(quesiton).  I would like to have the form skip to a later field(question) if they answer 'No'.  Can this be coded somehow in FormCalc?

Is there a way to easily put skip logic (not tab) in a form (Survey).

Thanks for your time/help.

3 Replies

Avatar

Level 10

You can use the setFocus methos to move the cursor to the field that you want..

Place it in the click event of the radiobutton.

In FormCalc:

if(radioButton1.rawValue == 1) then

     $host.setFocus("<FIELDNAME>");

endif

In Java Script:

if(radioButton1.rawValue == 1)

     xfa.host.setFocus("<FIELDNAME>");

Thanks

Srini

Avatar

Level 1

Thank you for your help.

When I use the formcalc script you provided this crashes my form. Javascript seems to not crash the program.

Either way - the skip pattern doesn't work

I have this:

Q1: Yes / No

Q2: check boxes for a list of items

Q3: Yes/NO

If someone clicks the radio button NO on Q1 - I don't want them to be able to complete the check boxes in Q2. Can this rule / skip pattern be programmed in Designer Lifecycle 7?

Kind thanks for your assistance.

//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

Chad Leaver

416 480.6100 ext: 7747

Avatar

Former Community Member

Yes it can but my guess is that your form is not set up in the default way (that is what Srini was showing in his example). If you send the form to LiveCycle8@gmail.com I will have a look. Include a description of what you want to have happen in the email.

Paul