getodk / collect

ODK Collect is an Android app for filling out forms. It's been used to collect billions of data points in challenging environments around the world. Contribute and make the world a better place! ✨📋✨
https://docs.getodk.org/collect-intro
Other
717 stars 1.38k forks source link

An already filled required question in a field-list with a question with constraint "gets” the constraint message after screen rotation #6508

Open dbemke opened 1 week ago

dbemke commented 1 week ago

ODK Collect version

the store version 2024.2.4, 2024.3.0 Beta 8

Android version

10, 14

Device used

Redmi 9T, Pixel 7a

Problem description

An already filled required question in a field-list with a question with constraint "gets” the constraint message after screen rotation.

reqConstFieldlist

Steps to reproduce the problem

  1. Open a form with a required question and a question with constrain in a field-list. RequiredAndConstraint.xlsx.txt

  2. Go to question on a field-list (required and constraint questions)

  3. In a required question enter some values.

  4. In constraint question enter 3 numbers (e.g. 555).

  5. Swipe to the next question (the red outline and text appears in the constraint question).

  6. Rotate the device (there’s the constraint message text in the filled required question).

    Expected behavior

    The already filled required question shouldn’t be marked as having errors. The wrong message shouldn’t appear.