OpenClinica / enketo-oc

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

constraint error shown for empty field #86

Open MartijnR opened 2 years ago

MartijnR commented 2 years ago

In all views.

Screen Shot 2022-03-21 at 10 35 00 AM

http://localhost:8005/single/fs/i/iB89KZuD?ecid=a

  1. enter value of one character and then remove it.
MartijnR commented 2 years ago

Cause is result.constraintValid in updateValidityInUi can be null

pbowen-oc commented 2 years ago

Looks good in testing.

pbowen-oc commented 2 years ago

@MartijnR - I think this issue is back: Date Constraint.xform.txt

Screenshot 2022-04-28 235241

Steps:

  1. Enter values into each date item so that the constraint fires on the second item
  2. Clear the second item

Expected: The constraint error disappears since the item is now empty.

Actual: The constraint message remains.

MartijnR commented 2 years ago

Suspect this is a different issue (original issue is still fixed) that may be specific to dates.