yamlform.yamlform.example_elements.yml in YAML Form 8
modules/yamlform_examples/config/install/yamlform.yamlform.example_elements.yml
File
modules/yamlform_examples/config/install/yamlform.yamlform.example_elements.ymlView source
- langcode: en
- status: false
- dependencies:
- enforced:
- module:
- - yamlform_examples
- uid: null
- template: false
- id: example_elements
- title: 'Example: Elements'
- description: 'Examples of every supported <a href="https://api.drupal.org/api/drupal/elements">form element</a>.'
- elements: |
- basic_elements:
- '#type': details
- '#title': 'Basic elements'
- '#open': true
- checkbox:
- '#type': checkbox
- '#title': Checkbox
- hidden:
- '#type': hidden
- '#title': Hidden
- password:
- '#type': password
- '#title': Password
- textarea:
- '#type': textarea
- '#title': Textarea
- textfield:
- '#type': textfield
- '#title': 'Text field'
- advanced_elements:
- '#type': details
- '#title': 'Advanced elements'
- '#open': true
- yamlform_autocomplete:
- '#type': autocomplete
- '#title': Autocomplete
- '#autocomplete_items': country_names
- captcha:
- '#type': captcha
- '#title': CAPTCHA
- yamlform_codemirror:
- '#type': codemirror
- '#title': CodeMirror
- '#mode': yaml
- color:
- '#type': color
- '#title': Color
- yamlform_creditcard_number:
- '#type': creditcard_number
- '#title': 'Credit card number'
- email:
- '#type': email
- '#title': Email
- yamlform_email_confirm:
- '#type': email_confirm
- '#title': 'Email confirm'
- yamlform_email_multiple:
- '#type': email_multiple
- '#title': 'Email multiple'
- number:
- '#type': number
- '#title': Number
- '#min': 0
- '#max': 10
- '#step': 1
- password_confirm:
- '#type': password_confirm
- '#title': 'Password confirm'
- '#description': '<b>Known Issues:</b><br/><a href="https://www.drupal.org/node/1427838">Issue #1427838: password and password_confirm children do not pick up #states or #attributes</a>'
- range:
- '#type': range
- '#title': Range
- '#min': 0
- '#max': 100
- '#step': 1
- '#range__output': true
- '#range__output_prefix': $
- '#range__output_suffix': '.00'
- yamlform_rating:
- '#type': rating
- '#title': Rating
- search:
- '#type': search
- '#title': Search
- yamlform_signature:
- '#type': signature
- '#title': Signature
- tel:
- '#type': tel
- '#title': Telephone
- text_format:
- '#type': text_format
- '#title': 'Text format'
- '#description': '<b>Known Issues:</b><br/><a href="https://www.drupal.org/node/997826">Issue #997826: #states doesn''t work correctly with type text_format</a><br/><a href="https://www.drupal.org/node/2625128">Issue #2625128: Text format selection stays visible when using editor and a hidden form state</a><br/><a href="https://www.drupal.org/node/1954968">Issue #1954968: Required CKEditor fields always fail HTML5 validation</a>'
- yamlform_toggle:
- '#type': toggle
- '#title': Toggle
- url:
- '#type': url
- '#title': URL
- value:
- '#type': value
- '#title': Value
- file_upload_elements:
- '#type': details
- '#title': 'File upload elements'
- '#open': true
- yamlform_audio_file:
- '#type': audio_file
- '#title': 'Audio file'
- yamlform_document_file:
- '#type': document_file
- '#title': 'Document file'
- yamlform_image_file:
- '#type': image_file
- '#title': 'Image file'
- managed_file:
- '#type': managed_file
- '#title': 'Managed file'
- '#description': '<b>Known Issues:</b><br/><a href="https://www.drupal.org/node/2705471">Issue #2705471: Form states managed file fields</a><br/><a href="https://www.drupal.org/node/2113931">Issue #2113931: File Field design update</a>'
- yamlform_video_file:
- '#type': video_file
- '#title': 'Video file'
- options_elements:
- '#type': details
- '#title': 'Options elements'
- '#open': true
- yamlform_buttons:
- '#type': buttons
- '#title': Buttons
- '#options':
- One: One
- Two: Two
- Three: Three
- yamlform_buttons_other:
- '#type': buttons_other
- '#title': 'Buttons other'
- '#options':
- One: One
- Two: Two
- Three: Three
- checkboxes:
- '#type': checkboxes
- '#title': Checkboxes
- '#description': '<b>Known Issues:</b><br/><a href="https://www.drupal.org/node/994360">Issue #994360: #states cannot disable/enable radios and checkboxes</a><br/><a href="https://www.drupal.org/node/2836364">Issue #2836364: Wrapper attributes are not supported by composite elements, this includes radios, checkboxes, and buttons.</a>'
- '#options':
- One: One
- Two: Two
- Three: Three
- yamlform_checkboxes_other:
- '#type': checkboxes_other
- '#title': 'Checkboxes other'
- '#options':
- One: One
- Two: Two
- Three: Three
- yamlform_likert:
- '#type': likert
- '#title': Likert
- '#questions':
- q1: 'Please answer question 1?'
- q2: 'How about now answering question 2?'
- q3: 'Finally, here is question 3?'
- '#answers':
- 1: 1
- 2: 2
- 3: 3
- 4: 4
- 5: 5
- radios:
- '#type': radios
- '#title': Radios
- '#description': '<b>Known Issues:</b><br/><a href="https://www.drupal.org/node/2731991">Issue #2731991: Setting required on radios marks all options required</a><br/><a href="https://www.drupal.org/node/994360">Issue #994360: #states cannot disable/enable radios and checkboxes</a><br/><a href="https://www.drupal.org/node/2836364">Issue #2836364: Wrapper attributes are not supported by composite elements, this includes radios, checkboxes, and buttons.</a>'
- '#options':
- One: One
- Two: Two
- Three: Three
- yamlform_radios_other:
- '#type': radios_other
- '#title': 'Radios other'
- '#options':
- One: One
- Two: Two
- Three: Three
- select:
- '#type': select
- '#title': Select
- '#description': '<b>Known Issues:</b><br/><a href="https://www.drupal.org/node/1426646">Issue #1426646: "-Select-" option is lost when form elements uses ''#states''</a><br/><a href="https://www.drupal.org/node/1149078">Issue #1149078: States API doesn''t work with multiple select fields</a><br/><a href="https://www.drupal.org/node/2791741">Issue #2791741: FAPI states: fields aren''t hidden initially when depending on multi-value selection</a>'
- '#options':
- One: One
- Two: Two
- Three: Three
- yamlform_select_other:
- '#type': select_other
- '#title': 'Select other'
- '#options':
- One: One
- Two: Two
- Three: Three
- tableselect:
- '#type': tableselect
- '#title': 'Table select'
- '#options':
- One: One
- Two: Two
- Three: Three
- yamlform_tableselect_sort:
- '#type': tableselect_sort
- '#title': 'Tableselect sort'
- '#options':
- One: One
- Two: Two
- Three: Three
- yamlform_table_sort:
- '#type': table_sort
- '#title': 'Table sort'
- '#options':
- One: One
- Two: Two
- Three: Three
- yamlform_toggles:
- '#type': toggles
- '#title': Toggles
- '#options':
- One: One
- Two: Two
- Three: Three
- containers:
- '#type': details
- '#title': Containers
- '#open': true
- container:
- '#type': container
- '#title': Container
- container_content:
- '#markup': 'This is a Container container.'
- details:
- '#type': details
- '#title': Details
- '#description': '<b>Known Issues:</b><br/><a href="https://www.drupal.org/node/2348851">Issue #2348851: Regression: Allow HTML tags inside detail summary</a>'
- details_content:
- '#markup': 'This is a Details container.'
- fieldset:
- '#type': fieldset
- '#title': Fieldset
- fieldset_content:
- '#markup': 'This is a Fieldset container.'
- item:
- '#type': item
- '#title': Item
- '#description': '<b>Known Issues:</b><br/><a href="https://www.drupal.org/node/783438">Issue #783438: #states doesn''t work for #type item</a>'
- '#markup': '{markup}'
- '#field_prefix': '{field_prefix}'
- '#field_suffix': '{field_suffix}'
- item_content:
- '#markup': 'This is a Item container.'
- label:
- '#type': label
- '#title': Label
- label_content:
- '#markup': 'This is a Label container.'
- date_time_elements:
- '#type': details
- '#title': 'Date/time elements'
- '#open': true
- date:
- '#type': date
- '#title': Date
- datetime:
- '#type': datetime
- '#title': Date/time
- '#description': '<b>Known Issues:</b><br/><a href="https://www.drupal.org/node/2419131">Issue #2419131: #states attribute does not work on #type datetime</a>'
- datelist:
- '#type': datelist
- '#title': 'Date list'
- yamlform_time:
- '#type': time
- '#title': Time
- '#description': '<b>Known Issues:</b><br/><a href="https://www.drupal.org/node/1838234">Issue #1838234: Add jQuery Timepicker for the Time element of the datetime field</a>'
- entity_reference_elements:
- '#type': details
- '#title': 'Entity reference elements'
- '#open': true
- entity_autocomplete:
- '#type': entity_autocomplete
- '#title': 'Entity autocomplete'
- '#description': '<b>Known Issues:</b><br/><a href="https://www.drupal.org/node/2826451">Issue #2826451: TermSelection returning HTML characters in select list</a>'
- '#target_type': user
- '#selection_handler': 'default:user'
- '#selection_settings':
- include_anonymous: true
- yamlform_entity_checkboxes:
- '#type': entity_checkboxes
- '#title': 'Entity checkboxes'
- '#target_type': user
- '#selection_handler': 'default:user'
- '#selection_settings':
- include_anonymous: true
- yamlform_entity_radios:
- '#type': entity_radios
- '#title': 'Entity radios'
- '#target_type': user
- '#selection_handler': 'default:user'
- '#selection_settings':
- include_anonymous: true
- yamlform_entity_select:
- '#type': entity_select
- '#title': 'Entity select'
- '#target_type': user
- '#selection_handler': 'default:user'
- '#selection_settings':
- include_anonymous: true
- markup_elements:
- '#type': details
- '#title': 'Markup elements'
- '#open': true
- yamlform_markup:
- '#type': markup
- '#title': 'HTML markup'
- '#description': '<b>Known Issues:</b><br/><a href="https://www.drupal.org/node/2700667">Issue #2700667: Notice: Undefined index: #type in drupal_process_states()</a>'
- yamlform_markup_content:
- '#markup': 'This is a HTML markup container.'
- yamlform_message:
- '#type': message
- '#title': Message
- '#description': '<b>Known Issues:</b><br/><a href="https://www.drupal.org/node/77245">Issue #77245: A place for JavaScript status messages</a>'
- '#message_type': warning
- '#message_message': 'This is a <strong>warning</strong> message.'
- yamlform_message_content:
- '#markup': 'This is a Message container.'
- processed_text:
- '#type': processed_text
- '#title': 'Processed text'
- processed_text_content:
- '#markup': 'This is a Processed text container.'
- other_elements:
- '#type': details
- '#title': 'Other elements'
- '#open': true
- yamlform_element:
- '#type': element
- '#title': 'Generic element'
- language_select:
- '#type': language_select
- '#title': 'Language select'
- '#languages': 3
- machine_name:
- '#type': machine_name
- '#title': 'Machine name'
- css: ''
- javascript: ''
- settings:
- page: true
- page_submit_path: ''
- page_confirm_path: ''
- form_submit_label: ''
- form_submit_attributes: { }
- form_exception_message: ''
- form_closed_message: ''
- form_confidential: false
- form_confidential_message: ''
- form_prepopulate: false
- form_prepopulate_source_entity: false
- form_novalidate: false
- form_unsaved: false
- form_disable_back: false
- form_autofocus: false
- form_details_toggle: false
- wizard_progress_bar: true
- wizard_progress_pages: false
- wizard_progress_percentage: false
- wizard_next_button_label: ''
- wizard_next_button_attributes: { }
- wizard_prev_button_label: ''
- wizard_prev_button_attributes: { }
- wizard_start_label: ''
- wizard_complete: true
- wizard_complete_label: ''
- preview: 0
- preview_next_button_label: ''
- preview_next_button_attributes: { }
- preview_prev_button_label: ''
- preview_prev_button_attributes: { }
- preview_message: ''
- draft: false
- draft_auto_save: false
- draft_button_label: ''
- draft_button_attributes: { }
- draft_saved_message: ''
- draft_loaded_message: ''
- confirmation_type: page
- confirmation_message: ''
- confirmation_url: ''
- confirmation_attributes: { }
- confirmation_back: true
- confirmation_back_label: ''
- confirmation_back_attributes: { }
- limit_total: null
- limit_total_message: ''
- limit_user: null
- limit_user_message: ''
- entity_limit_total: null
- entity_limit_user: null
- results_disabled: false
- results_disabled_ignore: false
- token_update: false
- access:
- create:
- roles:
- - anonymous
- - authenticated
- users: { }
- view_any:
- roles: { }
- users: { }
- update_any:
- roles: { }
- users: { }
- delete_any:
- roles: { }
- users: { }
- purge_any:
- roles: { }
- users: { }
- view_own:
- roles: { }
- users: { }
- update_own:
- roles: { }
- users: { }
- delete_own:
- roles: { }
- users: { }
- handlers: { }