Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.