Issue forms: Add ability to make fields depend on others #4386
Replies: 2 comments
-
Yeah it would be cool to have something like an I have a condition that I would like to ask if the next step contains vue sfc or just pug content and would like to render different markdown based on that |
Beta Was this translation helpful? Give feedback.
-
It would be nice to also be able to describe a set of values to be in a drop down according to the value of other field (and not only one, but several of them). Something like: body:
- type: dropdown
attributes:
label: Type
id: food-type # A unique id to be referenced later
description: Food Type
options:
- omnivore
- vegetarian
- vegan
default: 0
validations:
required: true
- type: dropdown
attributes:
label: Food
id: dish
description: Specific dish
options:
food-type.omnivore:
- "eggs"
- "pork
- "fish"
- "lettuce"
- "tomato"
- "cheese"
food-type.vegetarian:
- "eggs"
- "lettuce"
- "tomato"
- "cheese"
food-type.vegan:
- "lettuce"
- "tomato"
- "tofu"
default: food-type.vegan.0
validations:
required: true Whenever the user toggles the This is very similar to what is proposed at #6890 |
Beta Was this translation helpful? Give feedback.
-
We have several questions in our bug report template where we ask the user a yes/no question and then ask them to give additional details if "yes" was chosen. For example:
https://github.com/zwave-js/node-zwave-js/issues/new?assignees=&labels=&template=bug_report.yml
--> Did you change anything?
--> If yes, what did you change?
It would be good to have a way to make the "If yes, what did you change?" only appear and be required when the user chose "yes" under "Did you change anything?".
Beta Was this translation helpful? Give feedback.
All reactions