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:
- Mixed_Hab (mixed habitat) that can be populated from a list of Yes,No
- Perc_Primary (percentage of the primary habitat) that can be populated from a list 50,60,70,80,90
- Perc_Secondary (percentage of the secondary habitat) that is calculated as 100-Perc_Primary.
I want to achieve the following automation for the user's input.
If Mixed_Hab = no, then:
- Hide Perc_Primary in the form
- Populate Perc_Primary with the value 100
- Populate Perc_Secondary with the value 0
If Mixed_Hab = yes, then:
- Reveal Perc_Primary in the form
- Populate the Perc_Primary field with the value 50, and have the option to change the value based on the selection list of 50, 60, 70, 80, 90
- Populate Perc_Secondary with the value 100-Perc_Primary
I have currently achieved the following:
If Mixed_Hab = no, then:
- Reveal Perc_Primary in the form
- Populate Perc_Primary with the value 100
- Perc_Secondary remains blank
If Mixed_Hab = yes, then:
- Reveal Perc_Primary in the form
- Populate the Perc_Primary field with the value 50, and have the option to change the value based on the selection list of 50, 60, 70, 80, 90
- Populate Perc_Secondary with the value 50, and change it upon the input of the field Perc_Primary based on the calculation 100-Perc_Primary
I have attached the form for your convenience. Sorry for the unrecognized characters, its Greek...
Thanks in advance for the support.