plugin parameter visibilityCondition SELECT
![Peter_R_Knight](https://us.v-cdn.net/6038231/uploads/lithium_attachments/n558i76ECBF4FD7814589.jpg)
Peter_R_Knight
Registered Posts: 31 ✭✭✭✭
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
Tagged:
Best Answer
-
Hi @Peter_R_Knight
,The following condition should work:
"visibilityCondition": "model.select_field != null"
Thanks,
Zach
Answers
-
Thanks, that works for me.