Constraint does not work1

I’m stuck performing a task for my form design. indeed, I would like to make this condition.
If the total sum of people in the household (total adlutes + total children) is greater than that declared (value entered) by the respondent, then an error message is displayed and does not allow me to go to the next step . In summary, the total sum of people in the household (total adlutes + total children) which is a calculated value, must be absolutely equal to the household size declared verbally by the respondent.
Need your help urgently

2- If the calculated value corresponds to that declared (household size) then the bottom of the cell turns green highlighted (bottom of the input field)

On the other hand, if the value does not correspond, this will mean that there is an inconsistency and when the error message is displayed, the background of the cell where the result must be displayed is highlighted in red.2021_01_05_16_29_05_essai_contrainte_KoboToolbox aasuoDVoPL2KNTKP3qmoio.xlsx (8.9 KB)

Thank you

Can you send the XLS with the questions so that I look at it


1 Like

Good evening Stéphane, please receive the relevant xls file2021_01_05_16_29_05_essai_contrainte_KoboToolbox aasuoDVoPL2KNTKP3qmoio.xlsx (8.9 KB)

There is NO constraint column at all in your sheet.
The following example might help. There are more in this community to find with search option.