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

Filled values in a required question in Trees Create or Update form get removed #6533

Open
dbemke opened this issue Nov 27, 2024 · 1 comment

Comments

@dbemke
Copy link

dbemke commented Nov 27, 2024

ODK Collect version

the store version 2024.3.2 ,the master version f0ce2a6

Android version

10, 14

Device used

Redmi 9T, Pixel 7a

Problem description

Filled values in a required question (new circumference) in Trees Create or Update form get removed after tapping "check for errors” or trying to send the form. It seems that it happens when the circumference field was left empty in registration form.

XRecorder_27112024_081810.mp4

Steps to reproduce the problem

  1. Download user "createORupdate” https://staging.getodk.cloud/#/projects/101/app-users.
  2. Go to trees registration space1 form and create an entity with species but WITHOUT any value in circumference.
  3. Go to Trees Create or Update form and select the created entity.
  4. Swipe to following questions (don’t change prefilled choices/selects), in "new circumference” enter a number.
  5. Tap the three dots -check for errors or try to send the form (the filled "new circumference is removed – there’s information that the response is required)

Expected behavior

Filled values shouldn't disappear

Other information

I tried to reproduce it in Trees update form but the issue doesn't occur.

@seadowg
Copy link
Member

seadowg commented Nov 27, 2024

I think this is a mistake in the form right? new_circumference ("New circumference") has is bound with a calculate on the current circumference of the selected tree being updated so when "Check for errors" happens it'll get calculated again. Unless I'm mistaken, this form should be using trigger (https://docs.getodk.org/form-logic/#dynamic-defaults-from-form-data).

@seadowg seadowg moved this from inbox to not ready in ODK Collect Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: not ready
Development

No branches or pull requests

2 participants