Closed iadereggalternova closed 8 months ago
Hi @iadereggalternova, the issue is that we use a different validation message extension in ResearchKitOnFHIR than you have in your JSON, which was likely generated with an older version of the Phoenix survey builder. If you update it to "http://biodesign.stanford.edu/fhir/StructureDefinition/validationtext", it should work with ResearchKitOnFHIR. Hope this helps!
Description
I've noticed an issue where custom error messages for both Number and Text type questions in our survey forms aren't being displayed as expected. While the validations are functioning correctly, the custom error messages we've set up arenāt showing up when a user fails to meet the validation criteria.
Reproduction
To give you a better idea, hereās how you can reproduce the issue:
For Number Question
For Text Question
JSON sample
Expected behavior
Ideally, when a user inputs data that doesn't meet the validation criteria, our custom error message should be displayed to guide them.
Additional context
No response
Code of Conduct