Multiple show conditions for App questions

whiskerz007

Dabbler
Joined
Feb 9, 2021
Messages
13
My goal is to have a checkbox that will show a dropdown when checked. When the dropdown has a specific item selected it should show another text field. Is this possible with either show_subquestions_if or show_if?

I've tried to use nested show_subquestions_if and that doesn't work. The nested show_subquestions_if always shows when it's parent is showing.

I cannot find any documentation on using show_if beyond show_if: [["workloadType", "=", "CronJob"]]. Is it possible to run bitwise operations on multiple show_ifs? For example, would an AND operation be possible with something like show_if: [["enabled", "=", true],["workloadType", "=", "CronJob"]]?
 

ornias

Wizard
Joined
Mar 6, 2020
Messages
1,458
Nope both show_subquestion_if and show_if can not be used nested in eachother, as well as nested in themselves.
What you (often) can do, is add a "none" or "disabled" entry to the dropdown.
 

ornias

Wizard
Joined
Mar 6, 2020
Messages
1,458
Thats a good question, maybe try it out?
Never tried it myself tbh.
 

whiskerz007

Dabbler
Joined
Feb 9, 2021
Messages
13
I have been trying to get it to work and no joy. I'm not sure if I'm missing the magical incantation or if there is a limitation which restricts this function. I am also having a problem with using show_if underneath a subquestions even though the README does not callout this as a limitation.
 

ornias

Wizard
Joined
Mar 6, 2020
Messages
1,458
am also having a problem with using show_if underneath a subquestions even though the README does not callout this as a limitation.

Thats in the readme for the official repo for sure
 
Top