Try your hand at analyzing royal sentiment in Dataiku DSS! Learn more

Parameter's visibilityCondition based on a MULTISELECT parameter

Level 3
Parameter's visibilityCondition based on a MULTISELECT parameter

Hello 🙂

I would like to set a visibilityCondition so that my parameter is only visible if a specific choice of a MULTISELECT parameter is selected. Is it possible ? I already tried writing "'my_choice' in model.my_param"  without success...

Thx for your help

0 Kudos
3 Replies
Dataiker
Dataiker

Hello there,

The syntax for visibilityCondition is Javascript. Hence, you can set 

"visibilityCondition": "model.my_param.includes('my_choice')"

Hope it helps,

Alex

0 Kudos
Dataiker
Dataiker

Hi,

You can try writing this: "model.my_param.includes('my_choice') "

Cheers,

Du 

0 Kudos
Level 3
Author

Works perfectly, thank you 🙂

0 Kudos