function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Itayb34Itayb34 

Dynamic Options based on choice

Hello

 

I'm trying to find out if it's possible to have follow up question if the user picked a certain value on the first question, something like:

1. what are your reasons to choosing company x:

a. service

b. qualify

c. price

d. other

 

if user pick "other", then question "please elaborate" is displayed.

One important thing to note is that i want this question to be displayed on the same screen (I know I can use the "Desicion" option, but I prefer reduce amount of screens as possible)

 

Thanks!

 

Itay

Best Answer chosen by Admin (Salesforce Developers) 
RajaramRajaram

If all you want is a text box to appear when the user selects "Other" then what you need to define is what is called a "Choice with an Input". Simple check the "Show Input on Selection" checkbox when defining the choice and the UI will automatically display the text box when the user selects the choice.

You can also make the input required and have validation rules much like any other input field!