OpenClinica / enketo-oc

OpenClinica's fork of the Enketo web forms monorepo
Apache License 2.0
0 stars 1 forks source link

Change error messaging #62

Open iwoodferren opened 1 year ago

iwoodferren commented 1 year ago

Describe the bug Hello @MartijnR we'd like to request a modification to an error message thrown by the eneketo-validate project. Currently, when an eConsent form with too many options is uploaded the failure message is: Found bind with external attribute with "signature" value for question "consent" that does not have the "select" question type with a single option without the minimal appearance.

We'd like to change it to: Signature items must be of type select_multiple with one option

We'd also like to ensure that this new error message is displayed when the item type is anything other than select_multiple.

Thanks

To Reproduce

  1. Validate the following form with the validate project with the following command: /opt/applications/enketo-validate/validate -oc form-econsent.zip
MartijnR commented 1 year ago

Just wanted to highlight that the new error message will no longer show what question the error refers to (question "consent" in the example).

For consistency with the other error messages I took the liberty of surrounding select_multiple with quotes.

MartijnR commented 1 year ago

done in new published version