Discover all of the brand-new features and improvements to existing capabilities in the Dataiku 11.3 updateLET'S GO

plugin parameter visibilityCondition SELECT

Solved!
Peter_R_Knight
Level 2
plugin parameter visibilityCondition SELECT

Hi,

I'm developing a plugin.  I wanted to set the visibilityCondition based on another SELECT field but I want it to be visible once something is selected - i.e. when it shows 'Nothing selected' don't show the parameter.  I tried:

"visibilityCondition" : "model.select_field is not None",

"visibilityCondition" : "model.select_field 3 == 'Nothing selected'",

but neither  seemed to work (where select_field  is the name of the other select field).

Thanks

0 Kudos
1 Solution
ZachM
Dataiker

Hi @Peter_R_Knight ,

The following condition should work:

"visibilityCondition": "model.select_field != null"

 

Thanks,

Zach

View solution in original post

0 Kudos
2 Replies
ZachM
Dataiker

Hi @Peter_R_Knight ,

The following condition should work:

"visibilityCondition": "model.select_field != null"

 

Thanks,

Zach

0 Kudos
Peter_R_Knight
Level 2
Author

Thanks, that works for me.

0 Kudos

Labels

?
Labels (1)
A banner prompting to get Dataiku