Constraints working differently on the Collect Android App and Enketo

Hi Kal_Lam,

I have a somewhat similar problem – The constraints I used work well in the web version but doesn’t work in the Kobo collect app. Please see below the codes I used in the web tool:


The idea is that the production quantity can be any number greater than or equal to zero or -99, the code for missing (don’t know/not sure). The quantity sold should not be greater than the production quantity or -99, the code for missing value. The quantity given as gift should not be greater than the quantity produced less the quantity sold, or -99. The constraint formula becomes complicated given the possibility of entering -99.
Nevertheless, the code works in the web tool. However, the Kobo collect app in android phone does not allow the possibility of entering zero for quantity sold and quantity given as gift.

Grateful for your help.
Joe

@joe.alpuerto, could you kindly share the relevant part of your XLSForm so that the community could also test if out for you?

Hi Kal_Lam,

Sorry, I did not see your response sooner. I decided to remove the constraint as it was simpler. The possible data issues will be handled in the data validation instead.

1 Like

Thank you for updating, @joe.alpuerto!