Open yoannfleurydev opened 4 years ago
At the moment, the dependsOn key on a feature only requires a field to be filled. But what if the feature could appear on a given value?
dependsOn
Take a Select for example, with options Option 1 and Option 2.
Select
- type: SELECT name: dataset label: Dataset required: true options: - id: opt1 value: Option 1 - id: opt2 value: Option 2 - type: TEXT name: username label: Username dependsOn: - dataset.opt1 - type: TEXT name: login label: Login dependsOn: - dataset.opt2
Here, the username input should appear only when opt1 Option 1 is selected and login when opt2 Option 2 is selected.
username
opt1
login
opt2
:+1: JIRA Issue created : [SDKCLI-42]
At the moment, the
dependsOn
key on a feature only requires a field to be filled. But what if the feature could appear on a given value?Take a
Select
for example, with options Option 1 and Option 2.Here, the
username
input should appear only whenopt1
Option 1 is selected andlogin
whenopt2
Option 2 is selected.