Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • progressively show questions or information

  • show different questions or information according to previous responses

Process

Applying and testing conditional logic on forms can take a bit of trial and error. You’ll do a lot of refreshing of this published/preview page while setting up an testing configuration.You’ll need to embed your Drupal form in a Landing page in the CMS and publish or preview that Landing page for testing. (While there is a test function in Drupal forms, we prefer to test on a front end view.)

Applying and testing conditional logic on forms can take a bit of trial and error. You’ll do a lot of refreshing of your published/preview page while setting up and testing logic configuration.

Follow this basic process:

  1. Plan your logic first (see below)

  2. Add all your questions and information in the CMS first. .

  3. Progressively apply conditions and keep testing.

    • Hidden/visible logic can be applied on text fields.

    • More specific logic is mainly used with radio and checkbox elements (e.g. Q2 is visible if the response to Q1 is 'no')

    .Progressively apply conditions and keep testing
    • .

Tips

When you are in the Build mode on a webform, you can see if conditional logic has been applied to a question or piece of text by looking in the ‘Conditional’ column. Click Edit to add logic.

...

Conditional logic settings

...