I want to have a constraint against the child over 60 months

Hi @Kal_Lam I tried to do as you suggested but it does not work. Could you see mine what is wrong? In my case I want to have a constraint against the child over 60 months.

Welcome to the community, @Bankphimmakaisone! Seems like you wish to display the note if and only if the age is less than 60 months. Did I get you correct? Feel free to correct me if I understood you incorrectly.

@Kal_Lam Displaying the note is correct. What I want is to have a constraint ${C2_age_month<60 in the note question type, meaning that if the age of the child is more than 60 months, they should not be able to move to the next question. The problem I encountered is that people still be able to move to the next question. I wonder if the code I put there is incorrect?

Hi,

I believe it is because you added it to a note question, which may not evaluate it correctly. If you can share the XLS of the form, we can review it better.

Here is the XLS file. Can you access through this link?

Thank you

Hi @Bankphimmakaisone, This is the solution i was able find

testkobo_5122023.xlsx (137.1 KB)