{"id":1137,"date":"2021-08-24T17:11:19","date_gmt":"2021-08-24T09:11:19","guid":{"rendered":"https:\/\/leadsleap.com\/blog\/?p=1137"},"modified":"2021-08-24T17:11:21","modified_gmt":"2021-08-24T09:11:21","slug":"adding-custom-field-data-in-your-email","status":"publish","type":"post","link":"https:\/\/leadsleap.com\/blog\/adding-custom-field-data-in-your-email\/","title":{"rendered":"Adding Custom Field Data In Your Email"},"content":{"rendered":"\n<p>From time to time, we had members asking if they could show the data of a custom field in the email broadcast.<\/p>\n\n\n\n<p>Due to the technical constraint of our database structure, we had to say &#8216;No&#8217;.<\/p>\n\n\n\n<p>But now we found a way to do it without changing our database.<\/p>\n\n\n\n<p>Today I will give you a walkthrough of how you can use Custom Field in your email marketing campaign.<\/p>\n\n\n\n<p>Say you want to collect subscribers&#8217; phone number. Then you want to inform them that you will be calling them at that number.<\/p>\n\n\n\n<p>Below is how you&#8217;ll do it.<\/p>\n\n\n\n<h2>How To Set up A Custom Field In The Opt-in Form<\/h2>\n\n\n\n<p>There are several ways to set up an opt-in form. Here I&#8217;ll show you how to do it using our <a rel=\"noreferrer noopener\" aria-label=\"Page Builder (opens in a new tab)\" href=\"https:\/\/leadsleap.com\/pagebuilder\/\" target=\"_blank\">Page Builder<\/a>. The concept is the same.<\/p>\n\n\n\n<p>In the Page Builder, add a new input element by clicking arrow 1.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"451\" height=\"355\" src=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/1-1.jpg\" alt=\"\" class=\"wp-image-1138\" srcset=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/1-1.jpg 451w, https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/1-1-300x236.jpg 300w\" sizes=\"(max-width: 451px) 100vw, 451px\" \/><\/figure>\n\n\n\n<p>By default, the builder will add a &#8216;lastname&#8217; input field. If &#8216;lastname&#8217; input field already exists, it will add a generic &#8216;newinput&#8217; input field.<\/p>\n\n\n\n<p>Never mind the default <strong>Input Name<\/strong>, because you are going to change it.<\/p>\n\n\n\n<p>Say you want to add a &#8216;phone&#8217; input field, change the <strong>Input Name<\/strong> (arrow 2) to &#8216;phone&#8217;.<\/p>\n\n\n\n<p>Next, change the <strong>Input Placeholder<\/strong> (arrow 3) to &#8216;Enter your mobile number&#8217;.<\/p>\n\n\n\n<p>When done, you will have a form with an extra phone field like this:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"424\" height=\"264\" src=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/2-2.jpg\" alt=\"\" class=\"wp-image-1139\" srcset=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/2-2.jpg 424w, https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/2-2-300x187.jpg 300w\" sizes=\"(max-width: 424px) 100vw, 424px\" \/><\/figure>\n\n\n\n<h2>Where To See Custom Field In Your Subscriber List?<\/h2>\n\n\n\n<p>When someone enters a mobile number and opts in, you will see the info under the <strong>Custom Fields<\/strong> column (arrow 4 below) in your <a href=\"https:\/\/leadsleap.com\/members\/list.php\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"subscriber list (opens in a new tab)\">subscriber list<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"948\" height=\"256\" src=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/3.jpg\" alt=\"\" class=\"wp-image-1140\" srcset=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/3.jpg 948w, https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/3-300x81.jpg 300w, https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/3-768x207.jpg 768w\" sizes=\"(max-width: 948px) 100vw, 948px\" \/><\/figure>\n\n\n\n<p>Please note that the <strong>Custom Fields<\/strong> may be hidden due to too many columns being shown. You may have to turn off some columns (arrow 5) to see the <strong>Custom Fields<\/strong>.<\/p>\n\n\n\n<h2>How To Show Custom Field Data In Email Broadcast?<\/h2>\n\n\n\n<p>Now, assuming you want to add the subscriber&#8217;s phone number in an email <a href=\"https:\/\/leadsleap.com\/members\/list.broadcast.php\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"broadcast (opens in a new tab)\">broadcast<\/a>, all you have to do is add the following placeholder in the email message.<\/p>\n\n\n\n<p>~custom.phone~<\/p>\n\n\n\n<p>The email will look something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"730\" height=\"451\" src=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/Untitled-3.jpg\" alt=\"\" class=\"wp-image-1145\" srcset=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/Untitled-3.jpg 730w, https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/Untitled-3-300x185.jpg 300w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<p>Generally, a custom placeholder is  ~custom.<em>anyCustomFieldName<\/em>~. If the custom <strong>Input Name<\/strong> is age, the placeholder will be  ~custom.age~. If it is mailing address, the placeholder will be  ~custom.mailing address~.<\/p>\n\n\n\n<p>You can have <em><span style=\"text-decoration: underline;\">unlimited<\/span><\/em> custom input fields.<\/p>\n\n\n\n<h2>How To Change Custom Field Data?<\/h2>\n\n\n\n<p>What if your subscriber inform you that his phone number is wrong?<\/p>\n\n\n\n<p>Just change his phone number.<\/p>\n\n\n\n<p>To do that, go to your <a href=\"https:\/\/leadsleap.com\/members\/list.php\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"subscriber list (opens in a new tab)\">subscriber list<\/a>, look for his email and click the edit icon (arrow 7 below)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"948\" height=\"96\" src=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/5.jpg\" alt=\"\" class=\"wp-image-1142\" srcset=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/5.jpg 948w, https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/5-300x30.jpg 300w, https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/5-768x78.jpg 768w\" sizes=\"(max-width: 948px) 100vw, 948px\" \/><\/figure>\n\n\n\n<p>In the editor, you can change the Custom Field data (arrow 8 below).<\/p>\n\n\n\n<ul class=\"wp-container-2 wp-block-gallery-1 wp-block-gallery columns-1 is-cropped\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"738\" height=\"727\" src=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/Untitled-4-1.jpg\" alt=\"\" data-id=\"1144\" class=\"wp-image-1144\" srcset=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/Untitled-4-1.jpg 738w, https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/Untitled-4-1-300x296.jpg 300w, https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2021\/08\/Untitled-4-1-60x60.jpg 60w\" sizes=\"(max-width: 738px) 100vw, 738px\" \/><\/figure><\/li><\/ul>\n\n\n\n<p>I think I have more or less covered how you can use Custom Field. If you have other questions, please feel free to ask in the comments below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From time to time, we had members asking if they could show the data of a custom field in the email broadcast. Due to the technical constraint of our database structure, we had to say &#8216;No&#8217;. But now we found a way to do it without changing our database. Today I will give you a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[236],"tags":[],"_links":{"self":[{"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/posts\/1137"}],"collection":[{"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/comments?post=1137"}],"version-history":[{"count":1,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/posts\/1137\/revisions"}],"predecessor-version":[{"id":1146,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/posts\/1137\/revisions\/1146"}],"wp:attachment":[{"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/media?parent=1137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/categories?post=1137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/tags?post=1137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}