-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when note fields are required in form #494
Comments
Hi @jkuester, could you please help me with some steps/comments/ideas about what will be the correct way to test it? |
@tatilepizs Oh sure! Sorry for forgetting to put something in here before. Basically this new functionality should cause a form to fail validation if there is a
|
Thanks @jkuesterfor all the details, it was really helpful. These are the forms that I used -> enketo_test_formA.xlsx - enketo_test_formB.xlsx Testing steps: |
Setting a
note
field to berequired
has always been bad data, but in previous versions of Enketo, this was just silently ignored. Now, this config will prevent the user from continuing to the next page and completing the form.cht-core
has been updated, as a part of these changes: medic/cht-core#7256) to automatically remove therequired
designation fromnote
fields, but best practice would still have us identify these improperly configured notes when compiling the form withcht-conf
and produce an error so that the user knows to update the config. See this script as an example of regex for finding required notes and this xsl code which is howcht-core
is removing therequired
designation.The text was updated successfully, but these errors were encountered: