Open euanmillar opened 2 months ago
I'm moving this to backlog as this requires tech design
In reply to bullet 1: Having the signatures as form fields has been discussed. But they are best located on the review page. So conditionality between the form and review page is being asked for here
bullet 2: Good question. Think best to only allow signatures. Don't see a use case for allowing other form field inputs.
Some initial exploration work done in ocrvs-6821
.
Implement functionality for fetching the preview section from country config. This primarily touches on two modules:
[x] Move signature fields out from ReviewSection completely, introduce SIGNATURE
as new form input type.
[x] Add a generic field query/mutation transformer for redirecting the value from preview section to registration section. Signature inputs in the default example configurations should write and read signature data from the same fields as today.
[x] Refactor the double-key informantsSignatureURI + informantsSignature to always only be informantsSignatureURI. Ultimately the Base64 data is also just an URI and should be treaded as such.
[x] Add a backend validation error if preview section is not defined, guide user in local environment to add the fields that are today added by core automatically. These will be new non-custom fields in the form configuration.
[x] Validation error for when there are no form section with "preview" type should (in local environments) instruct the user to copy paste an example configuration that produces 100% identical output to how the signature inputs render and function today.
[x] Remove isSignatureMissing type logic and replace with regular form validation. Verify record cant submit before signature is placed.
Implement image upload to Minio for custom fields
Death registration form change