@jkuester , thanks for the response. I believe the circular dependency is not the cause here. For instance, if I change the relevancy condition of the barcode group to: ${project_c}="kadiyamatibabu" and (selected(${has_health_card_id},"yes") or (selected(${has_health_card_id},"no") and selected(${is_client_in_kym_app},"no")))
Then the barcode group will appear even after scanning the results. However, upon form submission, the value of calculate field kadi_ya_matibabu
becomes empty. This field depends on the text field kadi_ya_matibabu_id_read_only
.
If this textfield is also given the same relevancy condition as the barcode group, that means upon form submission, the barcode group and the textfield will both be visible and the textfield will contain the scanned value. If we display the calculate field at this point, it will also contain the textfield value. However, form submission causes the value to disappear.
So I wonder why that happens since both the barcode group (which contains the scan_result) and the textfield are relevant at the point of form submission.
For testing purposes, I also removed the hidden
attribute on SCAN_RESULT
field but that also did not help.
Another thing I observed is that if :
Do you have health card id? Yes
And then the form is submitted without scanning anything, the couch doc shows this structure:
"action": "com.google.zxing.client.android.SCAN",
"android-app-inputs": "",
"android-app-outputs": {
"SCAN_RESULT": ""
}
},
"kadi_ya_matibabu_id_read_only": "",
"kadi_ya_matibabu_id_text_field": "",
If the form is submitted with a scanned barcode id, the above group does not appear, which makes be think maybe it’s related to some CHT issue.