OpenClinica/enketo-express-oc

Failed to Fetch error when external file is missing

Closed this issue · 6 comments

Describe the bug
When loading a form that is missing an external list, the form will not load altogether.

To Reproduce

failed_to_fetch

External_Items.txt

This was missing: src="jr://file-csv/medication_list.csv"/>

Expected behavior
The form should load, but should also display the following error
hold_on_a_second

Created issue enketo/enketo#1007

@Apotischman, @pbowen-oc If I remember correctly OC just always wants to show the errors for missing data in all form views (including previews) and load the forms themselves. The only difference between the non-preview and preview views is that non-preview views should remove the submit buttons for serious errors like these. Is that correct?

@MartijnR - When a form fails to load properly such as due to a missing/invalid external instance, we show a different message where "Saving..." would be displayed (it is something like "Saving disabled") and remove the Close/Complete buttons.

Ah yes, thanks!

This can be closed due to successful testing post deployment.