{"id":132,"date":"2025-02-06T12:40:04","date_gmt":"2025-02-06T12:40:04","guid":{"rendered":"https:\/\/documentation.userswp.io\/article\/how-to-add-a-second-email-field-to-a-form\/"},"modified":"2026-01-30T12:13:49","modified_gmt":"2026-01-30T12:13:49","slug":"how-to-add-a-second-email-field-to-a-form","status":"publish","type":"gd_place","link":"https:\/\/userswp.io\/documentation\/article\/how-tos\/how-to-add-a-second-email-field-to-a-form\/","title":{"rendered":"How to add a second email field to a form"},"content":{"rendered":"<p>\n\tWith your UsersWP registration or account form you may want to add a second email field.\n<\/p>\n<p>\n\tTo add a second email field, use a text field with validation.\n<\/p>\n<p>\n\tAdd the field, then open the advanced settings for the field, then open the validation option and add something like this\n<\/p>\n<pre>\n[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>With your UsersWP registration or account form you may want to add a second email field. To add a second email field, use a text field with validation. Add the field, then open the advanced settings for the field, then open the validation option and add something like this [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[197,198,199],"article\/categories":[41,7],"class_list":["post-132","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-add-field","gd_place_tags-add-email-field","gd_place_tags-fields","gd_placecategory-how-tos","gd_placecategory-tips-tricks-more"],"_links":{"self":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":0,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/132\/revisions"}],"wp:attachment":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/tags?post=132"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/categories?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}