Score:0

Create 'conditional' select list in webforms?

kr flag

I'm pretty new to this so apologies in advance if I'm confusing or not clear enough.

I'm using Drupal 9 and I'm looking for a way to create a 'master' select list on webforms that will only show certain list items dependent on your answer to other questions. Example:

Q1. Do you want to study full time or part time? [select list]

Answers available: Full time / Part time

Q2. When do you want to study? [select list]

Answers available: September 2022 / January 2023 / September 2023

Q3. Which course do you want to study? [select list]

Answers available: Long list of multiple courses

Q3 is the question I would want the 'conditional' list to pull from. For example, if someone chooses Full time to Q1 and then September 2022 to Q2, I would want only courses available full time and in September 2022 to show in the available select list.

I'm aware that you can create pre-filled select lists using the options function under site settings, but I'm wondering if there's way to make the answers shown from this list conditional based on answers to the previous questions.

Currently I'm having to manually update every webform that contains Q3 anytime there is a change to our course offering and it's very time consuming, so any kind of automation here would be very helpful.

I hope this makes sense and that maybe someone can help me! Thanks

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.