How to set Plugin parameter visibility

dss-slb
Level 1
How to set Plugin parameter visibility

Hi,

  Is it possible to set the visibility of a plugin's parameters (type PRESET and STRING) based on a Dataiku project's variable?

  For example

dp_variables = dataiku.api_client().get_default_project().get_variables().get('standard')
my_var = dp_variables.get('my_var')

"params": [
{"name": "my_preset",
"label": "My Preset",
"type": "PRESET",
"visibilityCondition": "my_var is not None"},

{"name": "my_project",
"label": "My Test Project",
"type": "STRING",
"visibilityCondition": "my_var is not None"},

0 Kudos
0 Replies