Hi all. I am currently facing an issue where I want a question to remain hidden from the user, and to be revealed upon an answer.
However, I want this field to be populated with a certain value when it is not appeared to the user.
It seams like the "default" option works for me if no relevant expression is set.
I have three fields:
I want to achieve the following automation for the user's input.
If Mixed_Hab = no, then:
If Mixed_Hab = yes, then:
I have currently achieved the following:
If Mixed_Hab = no, then:
If Mixed_Hab = yes, then:
I have attached the form for your convenience. Sorry for the unrecognized characters, its Greek...
Thanks in advance for the support.
Solved! Go to Solution.
Hi,
'Relevant' does not mean that the question is hidden; it means that the question is not being asked as part of the survey (and thus it's value will be null). You can create the workflow of having a question that is initially non-relevant and store a value by creating a 3-question set:
1) The user-response question that has a relevant condition (q1)
2) A hidden or calculate question that stores the value when the user has not provided input (q2)
3) A calculate question using the coalesce(${q1}, ${q2}) function to store q1's value when present and otherwise use q2's. (qfinal)
q1 and q2 can have the bind::esri:fieldType value set to null as we don't need to store those values, only final's value.
Hi,
'Relevant' does not mean that the question is hidden; it means that the question is not being asked as part of the survey (and thus it's value will be null). You can create the workflow of having a question that is initially non-relevant and store a value by creating a 3-question set:
1) The user-response question that has a relevant condition (q1)
2) A hidden or calculate question that stores the value when the user has not provided input (q2)
3) A calculate question using the coalesce(${q1}, ${q2}) function to store q1's value when present and otherwise use q2's. (qfinal)
q1 and q2 can have the bind::esri:fieldType value set to null as we don't need to store those values, only final's value.
Thank you very much, it worked!