Aller au contenu principal
x
Paramètres de l'élément
Text field
A unique element key. Can only contain lowercase letters, numbers, and underscores.
 
This is used as a descriptive label when displaying this webform element.
A short description of the element used as help for the user when they use the webform.
Displays a Help tooltip after the element's title.
The text displayed in Help tooltip after the element's title.Defaults to the element's title
The text displayed in Help tooltip after the element's title.
Displays a read more hide/show widget below the element's description.
The click-able label used to open and close more text.Par défaut : More
A long description of the element that provides form additional information which can opened and closed.
Détermine l'emplacement du titre.
Determines the placement of the description.
Determines the placement of the Help tooltip.
Text or code that is placed directly in front of the input. This can be used to prefix an input with a constant string. Examples: $, #, -.
Text or code that is placed directly after the input. This can be used to add a unit to an input. Examples: lb, kg, %.
The element may still be empty unless it is required.
Leaving blank will use the default maxlength.
Si vous laissez vide, la dimension par défaut sera utilisée.
The placeholder will be shown in the element until the user starts entering a value.
Autocomplétion
Browsers sometimes have features for helping users fill forms in, for example prefilling the user's address based on earlier user input. The autocomplete (autofill) attribute can be used to hint to the user agent how to, or indeed whether to, provide such a feature.
Setting autocomplete to off will disable autocompletion for this element. Select 'Autofill' to use semantic attribute values for collecting certain types of user information.
Masques de saisie
(9 = numérique ; a = alphabétique ; * = alphanumérique)
An inputmask helps the user with the element by ensuring a predefined format.
Hide the input of the element when the input is not being focused.
Make this element non-editable with the user entered (e.g. via developer tools) value ignored. Useful for displaying default value. Changeable via JavaScript.
Make this element non-editable with the user entered (e.g. via developer tools) value submitted. Useful for displaying default value. Changeable via JavaScript.
Allow element to be populated using query string parameters.
Cochez cette option si l'utilisateur doit entrer une valeur.
If set, this message will be used when a required webform element is empty, instead of the default "Field x is required." message.
Check that all entered values for this element are unique.
Check that entered values for this element is unique for the current source entity.
Check that entered values for this element are unique for the current user.
If set, this message will be used when an element's value are not unique, instead of the default "La valeur %value a déjà été soumise pour l'élément %name. Vous avez peut-être déjà soumis ce webform, ou vous devez utiliser une valeur différente." message.
A regular expression that the element's value is checked against.
Enter a regular expression that the element's value should match.
If set, this message will be used when a pattern is not matched, instead of the default "Le champ %name n'est pas au bon format." message.
Modifier
Par défaut : Search
Par défaut : Quotidien
Logique conditionnelle
State Élément Trigger/Value Operations
si of the following is met:
Enter a number range (1:100)
When this element is hidden, this element's value will be cleared.
The default value of the webform element. For multiple options, use commas to separate multiple defaults.
This is used as the table header for this webform element when displaying multiple values.
This is used by the add/remove (+/-) icons.
This is used when there are no items entered.
Minimum items defaults to 0 for optional elements and 1 for required elements.
If unchecked, the elements will no longer be sortable.
If unchecked, the add/remove (+/x) buttons will be removed from each table row.
If unchecked, the add button will be removed from each table row.
If unchecked, the remove button will be removed from each table row.
If checked, an add more input will be added below the multiple values.
If checked, users will be able to input the number of items to be added.
This is used as the add more items button label for this webform element when displaying multiple values.
This is used as the add more items input label for this webform element when displaying multiple values.
Classes CSS de Enveloppe (wrapper)
Apply classes to the element's wrapper around both the field and its label. Select 'custom…' to enter custom classes.
Appliquer des styles personnalisés à l'enveloppe de l'élément, englobant le champ et son étiquette.
Enter additional attributes to be added to the element's wrapper.
Classes CSS de Élément
Apply classes to the élément. Select 'custom…' to enter custom classes.
Appliquer les styles personnalisés au élément.
Saisir les attributs supplémentaires à ajouter au élément.
Apply classes to the element's label.
Apply custom styles to the element's label.
Enter additional attributes to be added to the element's label.
Élément individuel
Sélectionner comment une valeur unique est affichée.
The HTML to display for a single element value. You may include HTML or Twig. You may enter data from the submission as per the "variables" below.
The text to display for a single element value. You may include Twig. You may enter data from the submission as per the "variables" below.

En savoir plus sur Twig et comment il est utilisé dans Drupal.

Les variables suivantes sont disponibles :

  • {{ value }}
  • {{ item.value }}
  • {{ item.raw }}
  • {{ data.element_key }}
  • {{ data['element_key'] }}
  • {{ data.element_key.delta }}
  • {{ data['element_key']['delta'] }}
  • {{ data.composite_element_key.subelement_key }}
  • {{ data.composite_element_key.delta.subelement_key }}
  • {{ original_data }}
  • {{ elements }}
  • {{ elements_flattened }}
  • {{ serial }}
  • {{ sid }}
  • {{ uuid }}
  • {{ token }}
  • {{ uri }}
  • {{ created }}
  • {{ completed }}
  • {{ changed }}
  • {{ in_draft }}
  • {{ current_page }}
  • {{ remote_addr }}
  • {{ uid }}
  • {{ langcode }}
  • {{ webform_id }}
  • {{ entity_type }}
  • {{ entity_id }}
  • {{ locked }}
  • {{ sticky }}
  • {{ notes }}
  • {{ webform }}
  • {{ webform_submission }}

Vous pouvez également rendre les jetons en utilisant la fonction webform_token().

{{ webform_token('[webform_submission:values:element_value]', webform_submission, [], options) }}

You can debug data using the webform_debug() function.

{{ webform_debug(data) }}
Éléments multiples
Select how multiple values are displayed.
The HTML to display for multiple element values. You may include HTML or Twig. You may enter data from the submission as per the "variables" below.
The text to display for multiple element values. You may include Twig. You may enter data from the submission as per the "variables" below.

En savoir plus sur Twig et comment il est utilisé dans Drupal.

Les variables suivantes sont disponibles :

  • {{ value }}
  • {{ items }}
  • {{ data.element_key }}
  • {{ data['element_key'] }}
  • {{ data.element_key.delta }}
  • {{ data['element_key']['delta'] }}
  • {{ data.composite_element_key.subelement_key }}
  • {{ data.composite_element_key.delta.subelement_key }}
  • {{ original_data }}
  • {{ elements }}
  • {{ elements_flattened }}
  • {{ serial }}
  • {{ sid }}
  • {{ uuid }}
  • {{ token }}
  • {{ uri }}
  • {{ created }}
  • {{ completed }}
  • {{ changed }}
  • {{ in_draft }}
  • {{ current_page }}
  • {{ remote_addr }}
  • {{ uid }}
  • {{ langcode }}
  • {{ webform_id }}
  • {{ entity_type }}
  • {{ entity_id }}
  • {{ locked }}
  • {{ sticky }}
  • {{ notes }}
  • {{ webform }}
  • {{ webform_submission }}

Vous pouvez également rendre les jetons en utilisant la fonction webform_token().

{{ webform_token('[webform_submission:values:element_value]', webform_submission, [], options) }}

You can debug data using the webform_debug() function.

{{ webform_debug(data) }}
Classes CSS de Display
Apply classes to the element's display wrapper. Select 'custom…' to enter custom classes.
Apply custom styles to the element's display wrapper.
Enter additional attributes to be added to the element's display wrapper.
The admin title will always be displayed when managing elements and viewing & downloading submissions.If an element's title is hidden, the element's admin title will be displayed when viewing a submission.
Admin notes/comments are display next to the element title in the form builder and visible in the form's YAML source
Private elements are shown only to users with results access.
Create submission
Select roles and users that should be able to populate this element when creating a new submission.
Roles
Select roles and users that should be able to update this element when updating an existing submission.
Roles
Select roles and users that should be able to view this element when viewing a submission.
Roles
If unchecked, the element is never displayed. The element will only be visible within the form builder and hidden from all other displays including submission details, results, and download.