...
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:
Plan your logic first (see below)
Add all your questions and information in the CMS first. .
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')
.
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
...