From e107e0e91b39537674a7ab3819e5ca0207ba0467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Wed, 24 Sep 2025 17:34:15 -0400 Subject: [PATCH 1/3] Enable and configure webform autosave for out tech 4 coops survey --- config/core.extension.yml | 1 + config/webform.webform.tech_for_coops.yml | 15 +++++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/config/core.extension.yml b/config/core.extension.yml index eea6f4d..662db31 100644 --- a/config/core.extension.yml +++ b/config/core.extension.yml @@ -168,6 +168,7 @@ module: webform_scheduled_email: 0 webform_submission_log: 0 webform_ui: 0 + webformautosave: 0 wysiwyg_linebreaks: 0 ds: 1 menu_admin_per_menu: 1 diff --git a/config/webform.webform.tech_for_coops.yml b/config/webform.webform.tech_for_coops.yml index 65ae585..8d988df 100644 --- a/config/webform.webform.tech_for_coops.yml +++ b/config/webform.webform.tech_for_coops.yml @@ -1,7 +1,14 @@ uuid: d3856942-5341-4e0a-8734-fa1c0e4ce5c3 langcode: en status: open -dependencies: { } +dependencies: + module: + - webformautosave +third_party_settings: + webformautosave: + auto_save: true + auto_save_time: 9000 + optimistic_locking: false weight: 0 open: null close: null @@ -151,7 +158,7 @@ settings: preview_excluded_elements: { } preview_exclude_empty: true preview_exclude_empty_checkbox: false - draft: none + draft: all draft_multiple: false draft_auto_save: false draft_saved_message: '' @@ -181,8 +188,8 @@ settings: entity_limit_total_interval: null entity_limit_user: null entity_limit_user_interval: null - purge: none - purge_days: null + purge: draft + purge_days: 182 results_disabled: false results_disabled_ignore: false results_customize: false From c12df8d56d1ff3eb6d901762067e0a124dbad882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Wed, 24 Sep 2025 18:02:29 -0400 Subject: [PATCH 2/3] Configure form to autofocus, plus random self-change along for the ride --- config/webform.webform.tech_for_coops.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/webform.webform.tech_for_coops.yml b/config/webform.webform.tech_for_coops.yml index 8d988df..cdce9f1 100644 --- a/config/webform.webform.tech_for_coops.yml +++ b/config/webform.webform.tech_for_coops.yml @@ -72,7 +72,7 @@ settings: page_submit_path: '' page_confirm_path: '' page_theme_name: '' - form_title: both + form_title: source_entity_webform form_submit_once: false form_open_message: '' form_close_message: '' @@ -93,7 +93,7 @@ settings: form_novalidate: false form_disable_inline_errors: false form_required: false - form_autofocus: false + form_autofocus: true form_details_toggle: false form_reset: false form_access_denied: default From 37108667e7bfc1faafe2e8394b4ee381bc5a8b63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Wed, 24 Sep 2025 18:03:15 -0400 Subject: [PATCH 3/3] Remove invisible rich text trash annoyingly kept from who knows where --- config/webform.webform.tech_for_coops.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/webform.webform.tech_for_coops.yml b/config/webform.webform.tech_for_coops.yml index cdce9f1..faff325 100644 --- a/config/webform.webform.tech_for_coops.yml +++ b/config/webform.webform.tech_for_coops.yml @@ -17,14 +17,14 @@ template: false archive: false id: tech_for_coops title: 'Technology for cooperatives survey' -description: 'Collecting information for and possible recipients of educational materials that would be produced by our collaboration on a CDF Cooperative Education Fund potential grant.' +description: '

Collecting information for and possible recipients of educational materials that would be produced by our collaboration on a CDF Cooperative Education Fund potential grant.

' categories: - 'Survey of needs' elements: |- main_software_needs: '#type': textarea '#title': 'What are the main software or online technology needs of your organization?' - '#description': 'Think about internal and external communication, financial management, places to keep shared documents, etc.' + '#description': 'Think about internal and external communication, financial management, places to keep shared documents, etc.' '#autocomplete': 'off' main_software_used: '#type': textarea @@ -33,7 +33,7 @@ elements: |- safety_concerns: '#type': textarea '#title': 'What are your concerns around online safety or other matters when using these tools?' - '#description': 'For example, confidential data being exposed to outside entities or governments.' + '#description': 'For example, confidential data being exposed to outside entities or governments.' '#autocomplete': 'off' alternatives_considered: '#type': textarea @@ -53,12 +53,12 @@ elements: |- educational_material_formats: '#type': textarea '#title': 'What educational or training material formats are most accesible for members of your organization?' - '#description': 'For example, which format would you be more likely to consult or use to study: pdf, video, webinar, audio, web page, printed material?' + '#description': 'For example, which format would you be more likely to consult or use to study: pdf, video, webinar, audio, web page, printed material… ?' '#autocomplete': 'off' describe_organization: '#type': textarea '#title': 'Please briefly describe the organization you work with.' - '#description': '
Main languages spoken, size, cooperative type, industry or sector— no need for identifying information!
' + '#description': 'Main languages spoken, size, cooperative type, industry or sector— no need for identifying information!' '#autocomplete': 'off' css: '' javascript: ''