@Kal_Lam
Quite and interesting obeservation here.
The solution worked in the preview and also on desktop submission page. However, in the Android Kobocollect app, the constraint message shows up even though the entries are in conformance with the constraint.
Therefore, not able to submit filled forms. I have used ‘datetime’ type of questions.
Any idea what is the issue?
Hello,
could you tell us, please, how you set the 2 variables?
It might be related to the time location. You could trace the 2 variables with a note, like label: End: ${end_time} Stat ${start_time}.
I have a similar issue trying to put constraint on a form about hunting. We want to know when the person went hunting, when he came back, and when he did catch an animal.
My constraints are (see also attached form)
on the date of return: . >= ${hunting_start}
on the catch date: . >= ${hunting_start} and . <= ${hunting_return}
The second constraint does not work when the start date is the same as the catch date.
Kindly please be informed that if you try this out in android Collect app (KoBoCollect or ODK Collect), it works as it should. But unfortunately it does not work as it should with Enketo.