diff --git a/app/controllers/submit_form_controller.rb b/app/controllers/submit_form_controller.rb index 2588c711c..d5fa25fec 100644 --- a/app/controllers/submit_form_controller.rb +++ b/app/controllers/submit_form_controller.rb @@ -39,6 +39,10 @@ def show # Fetch prefill values if available @prefill_values = fetch_prefill_values_if_available + # When the URL contains expand=true, keep the form panel expanded on desktop + # instead of auto-minimizing when the current field is signature/initials/file/image. + @expand = params[:expand] == 'true' + @attachments_index = build_attachments_index(submission) return unless @form_configs[:prefill_signature] diff --git a/app/views/submit_form/show.html.erb b/app/views/submit_form/show.html.erb index 946b9e6a0..f5aa4ed4d 100644 --- a/app/views/submit_form/show.html.erb +++ b/app/views/submit_form/show.html.erb @@ -68,7 +68,7 @@