• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Can I make a category inside a dropdown?

New Here ,
Jul 07, 2022 Jul 07, 2022

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?

TOPICS
PDF forms

Views

125

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 08, 2022 Jul 08, 2022

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines