Describe
When a single text item is entered and the form is closed right away, the field submission call is failing.
Note: If the user clicks enters data for 2 separate text fields or makes a non-text selection such as picking a date or a value in a single select there is no issue.
Describe When a single text item is entered and the form is closed right away, the field submission call is failing.
Note: If the user clicks enters data for 2 separate text fields or makes a non-text selection such as picking a date or a value in a single select there is no issue.
To Reproduce
Open attached form as a new form (view = /single/fs/c/i/) failedsubmissioncall.xform.txt
Enter '0' for "Height", do not click out of the field
Click the "Close" button
View the browser network panel calls/results
Expected behavior We expect that the page will wait to close until the submission has completed successfully.
Actual result The page closes even though the submission fails
Screenshots![2023-10-25_10-58-51](https://github.com/OpenClinica/enketo-express-oc/assets/74559963/e1b1c88d-9e90-44ca-9554-70a980ba9154)
Browser: chrome