Open jim-moore opened 5 years ago
The fix is not going in this repo I think. The validator is calling the odk-validate which in turn will call the javarosa code base.
Thanks @nribeka
Looking at the code, it appears the error checks and messages are in this repo:
@jim-moore wow! I thought the message was coming from the odk validator! Thank you for pointing this.
The validation error message returned when a question's label is missing is misleading - it suggests that either a label or a hint is required. As per the XLSForm spec, only the label is mandatory (the hint is not).
If a question has a hint but no label, a different warning message is returned. This message should be the same regardless of whether the question has a hint or not.
Suggest changing the error message to be the same in both instances, for example:
The survey element named '<question name>' has no label.
Examples from Survey123 Connect
Both label and hint missing:
Question has a hint but label is missing: