Dataiku App - VisibilityCondition

Aastha
Level 2
Dataiku App - VisibilityCondition

Hi,

While creating the dataiku app, I am adding a tile, 'Edit Project Variable'. I want to make that parameter visible only if multiple conditions are met.

How do I integrate the "visibilityCondition" for multiple conditions in the Application Designer? Currently the condition is like below:

"visibilityCondition": "model.CSV_UPLOAD==2"

 

However, I want to show the parameter if CSV_UPLOAD==2 and DIRECTIONAL takes value 2 or 3. How can I add this to the app?

 

Thanks,

Aastha

0 Kudos
2 Replies
Antal

The conditions are javascript syntax (if you want to google syntax in the future).

In your case it would be:

"visibilityCondition": "model.CSV_UPLOAD == 2 && (model.DIRECTIONAL== 2 || model.DIRECTIONAL == 3)"

0 Kudos
Aastha
Level 2
Author

Thank you! This helps.

0 Kudos

Setup info

?
Tags (1)
A banner prompting to get Dataiku