Hey everyone! I am having some issues with a repeat group in SurveyCTO. We are asking for each member which educational level they have obtained and then if they are enrolled, in which level they are enrolled. I would like to add a note that appears if 1) they have selected the same level 2) they have selected a level below in the second question 3) they have selected a type above in the second question but still same educ level (primary school or junior). If somebody could contact me for some help, I would really appreciate it!!! I attach here what i tried to do. I get the index repeat error though (36.9 KB)
Hi @mariab,
I can not open the fil you joined. But if If I have understood correctly what you're asking for there are two ways:
-
Display a note, after your question, (create a field "note") regarding what they select/enter before by using the "relevant" column:
http://xlsform.org/en/#question-types (field: note)
http://xlsform.org/en/#relevant -
Insert a constraint (in the column: constraint) on the question about the enrollement. This will permit to display a constraint message to the respondents if they select/enter an inconsistent value. So the answer will not be accepted until they enter a correct one. You can refer your constraint to the value of the previous answer:
By example: ".>${leveleduc}" which means the value of the variable they are going to fill needs to be more than the value they gave for the variable "leveleduc"
http://xlsform.org/en/#constraints
https://community.kobotoolbox.org/t/multiple-constraints-using-and-and-or/1010
http://blog.cartong.org/2015/08/11/advanced-xls-forms-coding-1/ (you have some examples here)
Hope it will help,
Otherwise do not hesitate to share again your file so we can open it,
All the best,
ChloƩ