Bug #18668
closedFile download from upload FE (filepond) not possible with formModeGlobal=readonly
0%
Description
Version 24.1.0.rc1:
If a form is opened with "formModeGlobal=readonly", it is impossible to download a previously uploaded file (FE upload, filepond). On the other hand, if the FE has mode "readonly" the download is possible.
Version develop:
No download button is shown.
Files
Updated by Jan Haller 23 days ago
- File clipboard-202405241231-vzjuz.png clipboard-202405241231-vzjuz.png added
- Description updated (diff)
Updated by Jan Haller 19 days ago
Cause for problem on develop:
Filepond wants to access the save button of the form which is not rendered with formModeGlobal=readony. This problem is solved by checking if the save button exists.
Cause for problem on 24.1.0.rc1 (#18670):
The problem occurs because the upload FE is inside a fieldset FE. formModeGlobal=readonly sets the fieldset to disabled which prevents <button> from registering click events. This problem is solved by setting the attribute readonly="readonly" for FE type=fieldset instead of disabled="disabled".