docusealco / docuseal

Open source DocuSign alternative. Create, fill, and sign digital documents ✍️
https://www.docuseal.co
GNU Affero General Public License v3.0
5.97k stars 410 forks source link

Can you make fields mandatory? #83

Closed maaper closed 9 months ago

maaper commented 1 year ago

Discussed in https://github.com/docusealco/docuseal/discussions/73

Originally posted by **ovizii** August 8, 2023 I'm just going through my first tests with a self-hosted docuseal and I added a date and a signature field to a PDF and I was simply able to ignore the signature, fill in the date field and submit. Unless I am making a mistake somewhere, this does not seem to make sense to me.
AlexandrToorchyn commented 1 year ago

@maaper

ignore the signature

That's true. It's possible to send a blank signature – just drawing a single dot on the canvas is enough to pass client-side validation. There are no simple ways to improve this, so we just rely on users adding their signatures as requested.

maaper commented 1 year ago

@AlexandrToorchyn I mean that when I receive the webhook I receive [blank] in the content of the signature within the json field.

Even if the user enter a simple dot the code of the field going with the webhook will not be [blank] in the receiving json.

In any case that is not happening to not with the field of sign, in some situations user can override the obligation of sending the form without filling all mandatory fields.

robertdoneill commented 1 year ago

Yes I think just having a selection option to make sure something is added to that field is necessary even if the signer does not actually sign.

omohokcoj commented 9 months ago

It's possible to make fields required - with the new app version required fields are not skippable That's true that just putting a dot in the signature canvas is considered as signature and it allows users to submit it and proceed with other fields. I think in this case the admin user can request them to resubmit their signature (ability to resubmit docs has been added in the 1.2.5 rversion)