Skip to main content
Participant
July 7, 2022
Question

Can I make a category inside a dropdown?

  • July 7, 2022
  • 1 reply
  • 246 views

Hello. I am making a form and there is a dropdown where there are 2 categories of answers. Can I make each category have a title and it not be selectable? For example, the responses could be apple, banana, orange with the word "Fruit" on top, and lettuce, potato, and broccoli with the word "Vegetable" on top. The words Fruit and Vegetable should not be selectable, and should also be bolded and the option be maybe filled in. We mostly want it to help the person filling out the form. Is that possible to do?

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 8, 2022

Not quite. You can't make some items in a drop-down field have a different layout than others.

What you can do is prevent certain items from being selected. To do that you can use a custom Validation script, like this:

 

if (event.value=="Fruit" || event.value=="Vegetable") event.rc = false;

 

If the user then selects one of these items it will revert to the previous selection they made in the field.