RensTillmann / super-forms

18 stars 14 forks source link

How to create Grouped Dropdown? #72

Closed tieroneco closed 1 year ago

tieroneco commented 1 year ago

Hello Guys,

Can anyone please tell us how can we create grouped dropdown like this https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_optgroup?

Thank you

tieroneco commented 1 year ago

Please help me out.

RensTillmann commented 1 year ago

Hi,

Super Forms does not support this, the alternative method is to create a dropdown "origin_country" with the countries. Then for each country a dropdown with the brands of the cars. And apply the conditional logic on each of them. Then when you choose "German cars", you can show the dropdown named "german_brands" and display Mercedese etc.

tieroneco commented 1 year ago

Hi,

Super Forms does not support this, the alternative method is to create a dropdown "origin_country" with the countries. Then for each country a dropdown with the brands of the cars. And apply the conditional logic on each of them. Then when you choose "German cars", you can show the dropdown named "german_brands" and display Mercedese etc.

Okay, I will do that. Thank you.