Created
September 15, 2020 08:45
-
-
Save hudri/daf9695c376b8678bad907a69efa200b to your computer and use it in GitHub Desktop.
Webform with processed text causing extra DIV wrapper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| uuid: 8b7b6e7f-dab7-446e-b640-37a3d6efb6bd | |
| langcode: de | |
| status: open | |
| dependencies: | |
| enforced: | |
| module: | |
| - webform | |
| open: null | |
| close: null | |
| weight: 0 | |
| uid: 1 | |
| template: false | |
| archive: false | |
| id: contact | |
| title: Anfrage | |
| description: 'Anfrageformular für Übernachtungen über die Webseite.' | |
| category: '' | |
| elements: "text_mydata:\n '#type': processed_text\n '#wrapper_attributes':\n class:\n - cell--flex-1-1\n '#display_on': both\n '#text': |\n <h3 class=\"webform__header webform__header--personal\">Meine Daten</h3>\n \n '#format': full_html\nsex:\n '#type': select\n '#title': Anrede\n '#options':\n f: Frau\n m: Herr\n '#chosen': true\n '#wrapper_attributes':\n class:\n - 'cell--flex-sm-1-5 cell--flex-1-1'\nfirstname:\n '#type': textfield\n '#title': Vorname\n '#wrapper_attributes':\n class:\n - 'cell--flex-sm-2-5 cell--flex-1-1'\nlastname:\n '#type': textfield\n '#title': Nachname\n '#required': true\n '#wrapper_attributes':\n class:\n - 'cell--flex-sm-2-5 cell--flex-1-1'\nstreet:\n '#type': textfield\n '#title': Straße\n '#wrapper_attributes':\n class:\n - cell--flex-1-1\nzipcode:\n '#type': textfield\n '#title': PLZ\n '#wrapper_attributes':\n class:\n - 'cell--flex-sm-1-5 cell--flex-1-1'\ncity:\n '#type': textfield\n '#title': Ort\n '#wrapper_attributes':\n class:\n - 'cell--flex-sm-2-5 cell--flex-1-1'\ncountry:\n '#type': select\n '#title': Land\n '#options': country_codes\n '#chosen': true\n '#wrapper_attributes':\n class:\n - 'cell--flex-sm-2-5 cell--flex-1-1'\nphone:\n '#type': tel\n '#title': Telefon\n '#wrapper_attributes':\n class:\n - 'cell--flex-sm-1-2 cell--flex-1-1'\n '#international': true\nemail:\n '#type': email\n '#title': E-Mail\n '#required': true\n '#default_value': '[current-user:mail]'\n '#wrapper_attributes':\n class:\n - 'cell--flex-sm-1-2 cell--flex-1-1'\ntext_traveldata:\n '#type': processed_text\n '#wrapper_attributes':\n class:\n - cell--flex-1-1\n '#display_on': both\n '#text': |\n <h3 class=\"webform__header webform__header--personal\">Reisedaten</h3>\n \n '#format': full_html\narrival:\n '#type': date\n '#title': Anreise\n '#wrapper_attributes':\n class:\n - cell--flex-1-2\n '#format': date_notime\n '#datepicker': true\n '#date_date_format': d.m.Y\n '#date_date_min': today\n '#date_date_max': '+1 year'\ndeparture:\n '#type': date\n '#title': Abreise\n '#wrapper_attributes':\n class:\n - cell--flex-1-2\n '#format': date_notime\n '#datepicker': true\n '#date_date_format': d.m.Y\n '#date_date_min': '+1 day'\n '#date_date_max': '+1 year'\nadults:\n '#type': number\n '#title': Erwachsene\n '#default_value': '2'\n '#wrapper_attributes':\n class:\n - cell--flex-1-2\n '#min': 1\n '#max': 99\n '#step': 1\nchildren:\n '#type': number\n '#title': Kinder\n '#default_value': '0'\n '#wrapper_attributes':\n class:\n - cell--flex-1-2\n '#min': 0\n '#max': 99\n '#step': 1\nchildren_age:\n '#type': textfield\n '#title': 'Alter der Kinder'\n '#states':\n visible:\n ':input[name=\"children\"]':\n value:\n greater: '0'\n required:\n ':input[name=\"children\"]':\n value:\n greater: '0'\n invisible:\n - ':input[name=\"children\"]':\n empty: true\n - xor\n - ':input[name=\"children\"]':\n value:\n less: '1'\ntext_roomdata:\n '#type': processed_text\n '#display_on': both\n '#text': |\n <h3 class=\"webform__header webform__header--room\">Ich interessiere mich für...</h3>\n \n '#format': full_html\nroom_quantity:\n '#type': number\n '#title': 'Anzahl Zimmer'\n '#default_value': '1'\n '#wrapper_attributes':\n class:\n - 'cell--flex-sm-1-5 cell--flex-1-1'\n '#min': 1\n '#max': 9\n '#step': 1\nwt_room:\n '#type': webform_entity_select\n '#title': Zimmertyp\n '#multiple': true\n '#chosen': true\n '#wrapper_attributes':\n class:\n - 'cell--flex-sm-4-5 cell--flex-1-1'\n '#format': label\n '#target_type': node\n '#selection_handler': views\n '#selection_settings':\n view:\n view_name: wt_room\n display_name: entity_reference_selectlist\n arguments: { }\nwt_package:\n '#type': webform_entity_select\n '#title': Angebote\n '#multiple': true\n '#chosen': true\n '#wrapper_attributes':\n class:\n - cell--flex-1-1\n '#format': label\n '#target_type': node\n '#selection_handler': views\n '#selection_settings':\n view:\n view_name: wt_package\n display_name: entity_reference_selectlist\n arguments: { }\ntext_message:\n '#type': processed_text\n '#display_on': both\n '#text': |\n <h3 class=\"webform__header webform__header--message\">Anmerkungen</h3>\n \n '#format': full_html\nmessage:\n '#type': textarea\n '#title': Sonstiges\n '#wrapper_attributes':\n class:\n - cell--flex-1-1\n '#test': 'Please ignore this email.'\ncaptcha:\n '#type': captcha\n '#captcha_type': recaptcha/reCAPTCHA\nactions:\n '#type': webform_actions\n '#title': 'Submit button(s)'\n '#submit__label': 'Anfrage abschicken'" | |
| css: '' | |
| javascript: "Drupal.webform = Drupal.webform || {};\r\nDrupal.webform.intlTelInput = Drupal.webform.intlTelInput || {};\r\nDrupal.webform.intlTelInput.options = {\r\n preferredCountries: ['at', 'de', 'ch', 'li']\r\n};\r\nDrupal.webform.chosen = Drupal.webform.chosen || {};\r\nDrupal.webform.chosen.options = {\r\n disable_search_threshold: 20,\r\n placeholder_text_multiple: drupalSettings.path.currentLanguage == 'de' ? '- Auswählen -' : '- Select -'\r\n};\r\nDrupal.behaviors.wtWebformChosenSelectRequired = {\r\n attach: function (context) {\r\n jQuery(context)\r\n .find('select.js-webform-chosen, .js-webform-chosen select')\r\n .once('wtWebformChosenSelectRequired')\r\n .on('chosen:ready', function(evt, param) {\r\n jQuery(evt.target).addClass('is-chosenized').attr('tabindex', '-1');\r\n });\r\n }\r\n};" | |
| settings: | |
| ajax: false | |
| ajax_scroll_top: form | |
| ajax_progress_type: '' | |
| ajax_effect: '' | |
| ajax_speed: null | |
| page: false | |
| page_submit_path: '' | |
| page_confirm_path: '' | |
| page_theme_name: '' | |
| form_title: both | |
| form_submit_once: false | |
| form_exception_message: '' | |
| form_open_message: '' | |
| form_close_message: '' | |
| form_previous_submissions: true | |
| form_confidential: false | |
| form_confidential_message: '' | |
| form_remote_addr: true | |
| form_convert_anonymous: false | |
| form_prepopulate: true | |
| form_prepopulate_source_entity: false | |
| form_prepopulate_source_entity_required: false | |
| form_prepopulate_source_entity_type: '' | |
| form_reset: false | |
| form_disable_autocomplete: false | |
| form_novalidate: false | |
| form_disable_inline_errors: false | |
| form_required: false | |
| form_unsaved: false | |
| form_disable_back: false | |
| form_submit_back: false | |
| form_autofocus: false | |
| form_details_toggle: false | |
| form_access_denied: default | |
| form_access_denied_title: '' | |
| form_access_denied_message: '' | |
| form_access_denied_attributes: { } | |
| form_file_limit: '' | |
| share: false | |
| share_node: false | |
| share_theme_name: '' | |
| share_title: true | |
| share_page_body_attributes: { } | |
| submission_label: '' | |
| submission_log: false | |
| submission_views: { } | |
| submission_views_replace: | |
| webform_routes: { } | |
| node_routes: { } | |
| submission_user_columns: | |
| - serial | |
| - created | |
| - element__firstname | |
| - element__lastname | |
| - element__email | |
| - element__arrival | |
| - element__departure | |
| - element__adults | |
| - element__children | |
| - element__room_quantity | |
| - element__wt_room | |
| - element__wt_package | |
| submission_user_duplicate: false | |
| submission_access_denied: default | |
| submission_access_denied_title: '' | |
| submission_access_denied_message: '' | |
| submission_access_denied_attributes: { } | |
| submission_exception_message: '' | |
| submission_locked_message: '' | |
| submission_excluded_elements: { } | |
| submission_exclude_empty: false | |
| submission_exclude_empty_checkbox: false | |
| previous_submission_message: '' | |
| previous_submissions_message: '' | |
| autofill: false | |
| autofill_message: '' | |
| autofill_excluded_elements: { } | |
| wizard_progress_bar: true | |
| wizard_progress_pages: false | |
| wizard_progress_percentage: false | |
| wizard_progress_link: false | |
| wizard_progress_states: false | |
| wizard_auto_forward: true | |
| wizard_auto_forward_hide_next_button: false | |
| wizard_keyboard: true | |
| wizard_start_label: '' | |
| wizard_preview_link: false | |
| wizard_confirmation: true | |
| wizard_confirmation_label: '' | |
| wizard_track: '' | |
| wizard_prev_button_label: '' | |
| wizard_next_button_label: '' | |
| wizard_toggle: false | |
| wizard_toggle_show_label: '' | |
| wizard_toggle_hide_label: '' | |
| preview: 0 | |
| preview_label: '' | |
| preview_title: '' | |
| preview_message: '' | |
| preview_attributes: { } | |
| preview_excluded_elements: { } | |
| preview_exclude_empty: true | |
| preview_exclude_empty_checkbox: false | |
| draft: none | |
| draft_multiple: false | |
| draft_auto_save: false | |
| draft_saved_message: '' | |
| draft_loaded_message: '' | |
| draft_pending_single_message: '' | |
| draft_pending_multiple_message: '' | |
| confirmation_type: url | |
| confirmation_title: '' | |
| confirmation_message: 'Vielen Dank, wir haben Ihre Anfrage erhalten. Wir werden uns so schnell wie möglich bei Ihnen melden.' | |
| confirmation_url: /contact-sent | |
| confirmation_attributes: { } | |
| confirmation_back: true | |
| confirmation_back_label: '' | |
| confirmation_back_attributes: | |
| class: | |
| - 'url url--btn url--btn-primary' | |
| confirmation_exclude_query: false | |
| confirmation_exclude_token: false | |
| confirmation_update: false | |
| limit_total: null | |
| limit_total_interval: null | |
| limit_total_message: '' | |
| limit_total_unique: false | |
| limit_user: null | |
| limit_user_interval: null | |
| limit_user_message: '' | |
| limit_user_unique: false | |
| entity_limit_total: null | |
| entity_limit_total_interval: null | |
| entity_limit_user: null | |
| entity_limit_user_interval: null | |
| purge: all | |
| purge_days: 365 | |
| results_disabled: false | |
| results_disabled_ignore: false | |
| results_customize: false | |
| token_view: false | |
| token_update: false | |
| serial_disabled: false | |
| access: | |
| create: | |
| roles: | |
| - anonymous | |
| - authenticated | |
| users: { } | |
| permissions: { } | |
| view_any: | |
| roles: { } | |
| users: { } | |
| permissions: { } | |
| update_any: | |
| roles: { } | |
| users: { } | |
| permissions: { } | |
| delete_any: | |
| roles: { } | |
| users: { } | |
| permissions: { } | |
| purge_any: | |
| roles: { } | |
| users: { } | |
| permissions: { } | |
| view_own: | |
| roles: { } | |
| users: { } | |
| permissions: { } | |
| update_own: | |
| roles: { } | |
| users: { } | |
| permissions: { } | |
| delete_own: | |
| roles: { } | |
| users: { } | |
| permissions: { } | |
| administer: | |
| roles: { } | |
| users: { } | |
| permissions: { } | |
| test: | |
| roles: { } | |
| users: { } | |
| permissions: { } | |
| configuration: | |
| roles: { } | |
| users: { } | |
| permissions: { } | |
| handlers: | |
| email_confirmation: | |
| id: email | |
| label: 'Anfrage Kopie an Kunde' | |
| handler_id: email_confirmation | |
| status: true | |
| conditions: { } | |
| weight: 1 | |
| settings: | |
| states: | |
| - completed | |
| to_mail: '[webform_submission:values:email:raw]' | |
| to_options: { } | |
| cc_mail: '' | |
| cc_options: { } | |
| bcc_mail: '' | |
| bcc_options: { } | |
| from_mail: _default | |
| from_options: { } | |
| from_name: '[site:name]' | |
| subject: 'Meine Anfrage auf [site:url-brief]' | |
| body: "Vielen Dank, wir haben Ihre Anfrage am [current-date:long] erhalten! Wir werden uns schnellstmöglich bei Ihnen mit einer persönlichen Antwort zurückmelden.<br />\r\n<br />\r\n<br />\r\nIhr [site:name] Team.<br />\r\n<br />\r\n<br />\r\nDiese Antwort wurde automatisch generiert und beinhaltet noch einmal Ihre Angaben im Formular auf unserer Webseite [site:url-brief].<br />\r\n<br />\r\n[webform_submission:values]" | |
| excluded_elements: { } | |
| ignore_access: false | |
| exclude_empty: true | |
| exclude_empty_checkbox: false | |
| exclude_attachments: false | |
| html: true | |
| attachments: false | |
| twig: false | |
| debug: false | |
| reply_to: '' | |
| return_path: '' | |
| sender_mail: '' | |
| sender_name: '' | |
| theme_name: '' | |
| parameters: { } | |
| email_notification: | |
| id: email | |
| label: 'Anfrage Benachrichtigung an Betreiber' | |
| handler_id: email_notification | |
| status: true | |
| conditions: { } | |
| weight: 1 | |
| settings: | |
| states: | |
| - completed | |
| to_mail: _default | |
| to_options: { } | |
| cc_mail: '' | |
| cc_options: { } | |
| bcc_mail: '' | |
| bcc_options: { } | |
| from_mail: _default | |
| from_options: { } | |
| from_name: '[webform_submission:values:firstname] [webform_submission:values:lastname] via [site:url-brief]' | |
| subject: 'Anfrage [webform_submission:values:arrival] - [webform_submission:values:departure], [webform_submission:values:adults] Pers.' | |
| body: '[webform_submission:values]' | |
| excluded_elements: { } | |
| ignore_access: false | |
| exclude_empty: true | |
| exclude_empty_checkbox: false | |
| exclude_attachments: false | |
| html: true | |
| attachments: false | |
| twig: false | |
| debug: false | |
| reply_to: '[webform_submission:values:email:raw]' | |
| return_path: '' | |
| sender_mail: '' | |
| sender_name: '' | |
| theme_name: '' | |
| parameters: { } | |
| variants: { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment