New to Dataiku DSS? Try out our NEW Quick Start Programs today and get onboarded on the product in just one hour! Let's go

Parameter's visibilityCondition based on a MULTISELECT parameter

Solved!
MGad
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
2 Solutions
Alex_Combessie
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

View solution in original post

0 Kudos
duphan
Dataiker
Dataiker

Hi,

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

Cheers,

Du 

View solution in original post

0 Kudos
3 Replies
Alex_Combessie
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

View solution in original post

0 Kudos
duphan
Dataiker
Dataiker

Hi,

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

Cheers,

Du 

View solution in original post

0 Kudos
MGad
Level 3
Author

Works perfectly, thank you 🙂

0 Kudos
A banner prompting to get Dataiku DSS