OpenClinica / enketo-oc

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

Strict Required Signature Widget loses "Required #40

Open Apotischman opened 1 year ago

Apotischman commented 1 year ago

Describe the bug When a signature widget is configured as a Strict Required item, it allows the user to clear the canvas. This should not be permitted. The blank canvas is not actually submitted back to us, but the existing image is no longer present on the screen in the current form session after the clear action.

To Reproduce

sig_widget_strict_xform.txt

Expected behavior The user should either not be able to click the clear button for a strict required signature widget (or other file type) or doing so should lead to an alert the item cannot be cleared.

Similarly, for drawing items that allow the undo action, the user should not be able to undo back to a blank canvas if the item is strict required.

Screenshots Sig_Widget_Required sig_widget_no_longer_required

Additional context Add any other context about the problem here.