OpenClinica / enketo-oc

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

Red asterisk for required items not disappearing when required items initially populated by triggered calculations #14

Open pbowen-oc opened 10 months ago

pbowen-oc commented 10 months ago

teps:

  1. Open the attached form as a new record (/single/fs/c/i/) -
  2. Calculation not firing on new form.xml.txt
  3. Click Yes for "Was Temperature Measured?" item
  4. Observe that temperature entry fields appear with initial values of 98.6 and ⁰F.

Expected: The temperature entry fields have values, so they should no longer have the red asterisk that indicates an empty required item.

Actual: The temperature entry fields still have red asterisks despite having values now.

(ignore circled area, this ticket is about the red asterisks above it) Screenshot 2024-01-26 015953

Note that changing the values on the form afterward, changing the trigger item to make these items non-relevant then relevant again, or reopening the form (whether there were changes or not) causes the red asterisks to disappear as expected.

Sample instance to use when reopening the form - Calculation not firing on new form.instance.txt

Reopening form working as expected: Screenshot 2024-01-26 020049

pbowen-oc commented 10 months ago

This was present in 6.0.0.oc-7 (and possibly earlier).

pbowen-oc commented 10 months ago

Martijn had added this note to the original ticket this was logged under (#742): regarding required asterisks maybe this is related: https://github.com/enketo/enketo/issues/1295