Hi @Mumlaqs
I would like to answer your query using broad perspective on how to best customize forms.
-
The first step would be to create a logic for what you want to do, makes it very easy to create rules. An example in this case would be
a) The first person in the household must be head of household
b) The second and subsequent person cannot be head of household
-
With the logic take the shortest path to execution, in this case you have to ask your self how to execute the components in 1 (a) and 1 (b) above
- For 1 (a)
-Ensure that the response labels have an order of say 1=Head of Household, 2=Spouse/Partner 3=Daughter etc as you desire. You can then set a constraint that on the first member of household the response must be equal to 1
-For the second component i.e. 1 (b) your logic should be as simple as not equal to 1.
This is the shortest way to execute this. However depending on whether you want to use repeat questions, or just a group of individuals questions, the execution will follow the same logic but must address the repeat index discussed here in this will ensure that for the first index of the repeat the condition must satisfy the equal to 1 and for the subsequent greater than 1 when responding to 1(a) and 1(b). In this case you can use the if command in your constraint together with the index-repeat to execute the function.
Now try and fiddle with this based on how your form is set to get it done. Wishing you all the best
Regards
Stephane