contact.adding_fields.html.twig

Same filename in other branches
  1. 10 core/modules/contact/help_topics/contact.adding_fields.html.twig
  2. 11.x core/modules/contact/help_topics/contact.adding_fields.html.twig
---
label: 'Managing the fields of contact forms'
related:
  - contact.overview
---
{% set contact_link_text %}{% trans %}Contact forms{% endtrans %}{% endset %}
{% set contact_link = render_var(help_route_link(contact_link_text, 'entity.contact_form.collection')) %}
<h2>{% trans %}Goal{% endtrans %}</h2>
<p>{% trans %}Add, remove, or rearrange the fields on personal and site-wide contact forms.{% endtrans %}</p>
<h2>{% trans %}What are the fields on contact forms?{% endtrans %}</h2>
<p>{% trans %}Both personal and site-wide contact forms will always have <em>Subject</em> and <em>Message</em> fields. You can add additional fields for users to fill out if desired. Note that if you want to display other content on a form page, such as text or images, you can use a custom block.{% endtrans %}</p>
<h2>{% trans %}Steps{% endtrans %}</h2>
<ol>
  <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>Structure</em> &gt; <em>{{ contact_link }}</em>.{% endtrans %}</li>
  <li>{% trans %}Click <em>Manage fields</em> for the form you want to change the fields of, and add or remove one or more fields on the form.{% endtrans %}</li>
  <li>{% trans %}Click <em>Manage form display</em> to change the order or configuration of the fields on the form.{% endtrans %}</li>
</ol>

File

core/modules/help_topics/help_topics/contact.adding_fields.html.twig

View source
  1. ---
  2. label: 'Managing the fields of contact forms'
  3. related:
  4. - contact.overview
  5. ---
  6. {% set contact_link_text %}{% trans %}Contact forms{% endtrans %}{% endset %}
  7. {% set contact_link = render_var(help_route_link(contact_link_text, 'entity.contact_form.collection')) %}
  8. <h2>{% trans %}Goal{% endtrans %}</h2>
  9. <p>{% trans %}Add, remove, or rearrange the fields on personal and site-wide contact forms.{% endtrans %}</p>
  10. <h2>{% trans %}What are the fields on contact forms?{% endtrans %}</h2>
  11. <p>{% trans %}Both personal and site-wide contact forms will always have <em>Subject</em> and <em>Message</em> fields. You can add additional fields for users to fill out if desired. Note that if you want to display other content on a form page, such as text or images, you can use a custom block.{% endtrans %}</p>
  12. <h2>{% trans %}Steps{% endtrans %}</h2>
  13. <ol>
  14. <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>Structure</em> &gt; <em>{{ contact_link }}</em>.{% endtrans %}</li>
  15. <li>{% trans %}Click <em>Manage fields</em> for the form you want to change the fields of, and add or remove one or more fields on the form.{% endtrans %}</li>
  16. <li>{% trans %}Click <em>Manage form display</em> to change the order or configuration of the fields on the form.{% endtrans %}</li>
  17. </ol>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.