{"id":1005,"date":"2023-05-21T09:11:31","date_gmt":"2023-05-21T08:11:31","guid":{"rendered":"https:\/\/greatsite.dev\/makegreatsite\/docs\/contact-forms\/customizing-the-fields-in-a-contact-form\/"},"modified":"2023-05-21T09:16:14","modified_gmt":"2023-05-21T08:16:14","slug":"customizing-the-fields-in-a-contact-form","status":"publish","type":"docs","link":"https:\/\/greatsite.dev\/makegreatsite\/docs\/contact-forms\/customizing-the-fields-in-a-contact-form\/","title":{"rendered":"Customizing the fields in a contact form"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">After you&#8217;ve added a contact form on your site, make sure you change the layout so your customers submit only the relevant info. Add and remove the fields in the form, make some of them mandatory \u2014 that is up to you.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Customizing the layout of a contact form<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">1. Hover over the contact form and click on the &#8220;gear&#8221; to access its settings:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"460\" height=\"434\" src=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en1_v4slbs.png\" alt=\"\" class=\"wp-image-1006\" srcset=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en1_v4slbs.png 460w, https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en1_v4slbs-300x283.png 300w\" sizes=\"auto, (max-width: 460px) 100vw, 460px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">2. In the\u00a0<strong>Layout<\/strong>\u00a0tab press\u00a0<strong>Add field<\/strong>\u00a0and select the fields you&#8217;d like to show in the form \u2014 email, date, check box, etc:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"518\" src=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en2_1hnsygr.png\" alt=\"\" class=\"wp-image-1007\" srcset=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en2_1hnsygr.png 788w, https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en2_1hnsygr-300x197.png 300w, https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en2_1hnsygr-768x505.png 768w\" sizes=\"auto, (max-width: 788px) 100vw, 788px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">3. To access the settings of the field, click on the &#8220;gear&#8221; next to it:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"390\" height=\"449\" src=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en3_40wf0a.png\" alt=\"\" class=\"wp-image-1008\" srcset=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en3_40wf0a.png 390w, https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en3_40wf0a-261x300.png 261w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">4. To change the name that will be displayed above the field itself, change the text in the very first line of the settings:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"421\" src=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en4_88gmr0.png\" alt=\"\" class=\"wp-image-1010\" srcset=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en4_88gmr0.png 730w, https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en4_88gmr0-300x173.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">5. In the fields with placeholders, you can add text that will be displayed in these placeholders and disappear when the user starts to type something:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"419\" src=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en5_jpaa1d.png\" alt=\"\" class=\"wp-image-1011\" srcset=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en5_jpaa1d.png 730w, https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en5_jpaa1d-300x172.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">6. In order to add a detailed description to the field, enable the\u00a0<strong>Add field description<\/strong>\u00a0option in the settings and enter the desired description in the line below:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"417\" src=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en6_qm2yqc.png\" alt=\"\" class=\"wp-image-1012\" srcset=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en6_qm2yqc.png 730w, https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en6_qm2yqc-300x171.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">7. To make the field required, enable the\u00a0<strong>Make this field required<\/strong>\u00a0option. After that, an asterisk should appear near the field&#8217;s name:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"429\" src=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en7_17pql0m.png\" alt=\"\" class=\"wp-image-1013\" srcset=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en7_17pql0m.png 730w, https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en7_17pql0m-300x176.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">8. When the\u00a0<strong>Make this field requied<\/strong>\u00a0option is enabled, the\u00a0<strong>Exact value<\/strong>\u00a0field appears. In this field you can set a password for your page.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"426\" src=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en8_1mvhxsy.png\" alt=\"\" class=\"wp-image-1014\" srcset=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en8_1mvhxsy.png 730w, https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en8_1mvhxsy-300x175.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">9. You can set a\u00a0<strong>Default value<\/strong>\u00a0in the appropriate field. This text will already be entered in the field when the form opens, but the site visitor can delete or change what was entered in the default field.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"426\" src=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en8_1mvhxsy-2.png\" alt=\"\" class=\"wp-image-1016\" srcset=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en8_1mvhxsy-2.png 730w, https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en8_1mvhxsy-2-300x175.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">10. The\u00a0<strong>Default value<\/strong>\u00a0field can be used simultaneously with the\u00a0<strong>Hidden field<\/strong>\u00a0option. In this case, for example, you can name the form or specify other additional and important information for you.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"427\" src=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en10_1vg8w6x.png\" alt=\"\" class=\"wp-image-1017\" srcset=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en10_1vg8w6x.png 730w, https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en10_1vg8w6x-300x175.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">11. To set value from a URL parameter, add a UTM tag to the appropriate field.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"390\" height=\"458\" src=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en11_p9brnp.png\" alt=\"\" class=\"wp-image-1018\" srcset=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en11_p9brnp.png 390w, https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en11_p9brnp-255x300.png 255w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">12. To remove a field from the form, click on the trash can icon next to it:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"390\" height=\"438\" src=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en12_18dq2h4.png\" alt=\"\" class=\"wp-image-1019\" srcset=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en12_18dq2h4.png 390w, https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en12_18dq2h4-267x300.png 267w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">13. You can also change the order of your fields in the form. For that, pick the field up by the handlers and drop in the necessary position:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"390\" height=\"434\" src=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en13_14zaa8u.png\" alt=\"\" class=\"wp-image-1020\" srcset=\"https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en13_14zaa8u.png 390w, https:\/\/greatsite.dev\/makegreatsite\/wp-content\/uploads\/en13_14zaa8u-270x300.png 270w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/figure>\n<\/div>","protected":false},"featured_media":0,"parent":463,"menu_order":2,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-1005","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/greatsite.dev\/makegreatsite\/wp-json\/wp\/v2\/docs\/1005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greatsite.dev\/makegreatsite\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/greatsite.dev\/makegreatsite\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/greatsite.dev\/makegreatsite\/wp-json\/wp\/v2\/comments?post=1005"}],"version-history":[{"count":1,"href":"https:\/\/greatsite.dev\/makegreatsite\/wp-json\/wp\/v2\/docs\/1005\/revisions"}],"predecessor-version":[{"id":1021,"href":"https:\/\/greatsite.dev\/makegreatsite\/wp-json\/wp\/v2\/docs\/1005\/revisions\/1021"}],"up":[{"embeddable":true,"href":"https:\/\/greatsite.dev\/makegreatsite\/wp-json\/wp\/v2\/docs\/463"}],"next":[{"title":"Customizing the style of a contact form","link":"https:\/\/greatsite.dev\/makegreatsite\/docs\/contact-forms\/customizing-the-style-of-a-contact-form\/","href":"https:\/\/greatsite.dev\/makegreatsite\/wp-json\/wp\/v2\/docs\/1022"}],"prev":[{"title":"Setting email for the contact form notifications","link":"https:\/\/greatsite.dev\/makegreatsite\/docs\/contact-forms\/setting-email-for-the-contact-form-notifications\/","href":"https:\/\/greatsite.dev\/makegreatsite\/wp-json\/wp\/v2\/docs\/995"}],"wp:attachment":[{"href":"https:\/\/greatsite.dev\/makegreatsite\/wp-json\/wp\/v2\/media?parent=1005"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/greatsite.dev\/makegreatsite\/wp-json\/wp\/v2\/doc_tag?post=1005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}