Fixed an issue where the document preview was not displayed while users were completing a form, even when the form configuration was set to show the document.
The preview visibility setting now works correctly: when Show Document is enabled, users can view the associated document while completing the form; when disabled, the document remains hidden as configured.