How to set Plugin parameter visibility

Options
dss-slb
dss-slb Registered Posts: 7

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"},

Setup Info
    Tags
      Help me…