OpenClinica / enketo-oc

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

Additional signature item checks for Validate #49

Open pbowen-oc opened 1 year ago

pbowen-oc commented 1 year ago

Please add the following additional checks in Validate for signature items (following up on OpenClinica/enketo-oc#71). Signature items will have bind oc:external="signature".

Checks:

  1. The lone choice for a signature item must have name "1". Error message if this fails: "Signature items must have choice name set to '1'"

  2. There cannot be more than one signature item on a form. Error message if this fails: "Consent forms can only include one signature item."

MartijnR commented 1 year ago

internal PR: https://github.com/OpenClinica/enketo-validate/pull/1

MartijnR commented 1 year ago

Don't forget to change the git remote on your servers to https://github.com/OpenClinica/enketo-express-oc.git