formtools / core

The Form Tools Core.
https://formtools.org
207 stars 78 forks source link

Conditional Field (Hide/Show Field based on another fields value) #669

Open nicktalsma opened 4 years ago

nicktalsma commented 4 years ago

Is it possible to only show a field based on another fields value in the form? Currently using FormBuilder to create forms.

For instance if the first question was a dropdown and asked your favorite food: Pizza, Ice Cream, Tacos, Burgers, Other.

Is it possible to show an additional field (free text) if 'Other' is selected from above, otherwise leave that field hidden.

And then, is it possible to make that field required (not as important, but that would be nice). Not sure where to start. Thanks!

nicktalsma commented 2 years ago

Bump. Still would love this feature.