Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pbowen-oc opened this issue Feb 1, 2024 · 2 comments
Milestone

Comments

@pbowen-oc
Copy link

pbowen-oc commented Feb 1, 2024

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
Copy link
Author

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

@pbowen-oc
Copy link
Author

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

@MartijnR MartijnR transferred this issue from OpenClinica/enketo-express-oc May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant