In our application cases are retailers and we have forms for putting retailers on the system and editing them.
In addition we have a visit form which gathers data when a retailer is visited.
I am updating the visit form so that it checks for key missing data from the case and, if data is missing from the case (eg retailer GPS location, retailer gender etc), it requests it at the end of the normal visit form.
I'm doing this using hidden values which load the current value of the property (which may or may not be missing) from the case. Then the visit form has "additional questions" with display conditions on them so that they are only displayed (ie asked) if the hidden value is '' or '---'.
Then, at the end of the visit form the values of the "additional questions" are saved to the case.
My question is:
- If the "additional questions" (eg the retailer location) are not asked (because they are already known) what gets saved back to the case when the visit form is submitted? I'm concerned that a missing value might get saved back to the case and overwrite a known value. Although I could test this, I don't want to submit 'test' visit forms as there is no way of deleting them later and this will complicate analyses we do on this data in the future.
Thanks
Simon