Controlling question and conditional visibility, Backend

Hi all,

We have the following problem:

On android phone/tablets, users have changed answers to controlling questions in different program stages (e.g., “Is the client pregnant?”) after entering data into conditionally visible fields, but without clearing dependent data.

Scenario 1: Online mode (synced to server before changing answer)
Scenario 2: Offline mode (tablet, changes done offline)

Our question: Does the server accept both values (The tracker backend does not automatically delete hidden field data?)

We would like to know the implications of these situations and what corrective measures we can take.

Note: The biggest problem users have been reporting is data synchronization on android phone/tablets.

Hi @fernando,

the behavior in the Android app should be the same as in the web app, which means that hidden fields are blanked out. The app will remove this value in the next synchronization. This is the expected behavior.

It is different if you are using HIDE_SECTION instead of HIDE_FIELD. Values are not deleted when they are assigned to dataElements in a section that has been hidden. In short:

  • hide fields → deletes the data value.
  • hide section → does not delete the data values in the section.

Hope it helps.