How to prefill form fields in ExactTarget?

How to prefill form fields in ExactTarget?

The forms that you share through your ExactTarget emails can contain prefilled values. This will improve your subscribers’ experience, as information like their names or addresses will already be included in the form when they start filling it out.

First of all, here is what you need to know in order to share forms through ExactTarget, in case you don’t already.

And here are the steps required for prefilling a form in ExactTarget:

1. Log in to your ExactTarget account and select Channel AppsEmail in the dropdown menu from the top-left corner. Then, select ContentEmails or Simple Automated Emails in the top menu.

exact-target-channel-apps
ExactTarget Content-Emails

2. Create a new template based email (CreateTemplate Base). In the HTML mode, click on the section where you want to add the form link and select Retrieve Content. Choose your form and hit OK.

ExactTarget - template based emails
ExactTarget - retrieve content
3. Now it’s time to prefill form fields. Click on the section where you’ve added the form and select Modify Content. Enter the HTML mode and spot your form URL. It looks like this:

https://www.123contactform.com/form-123456/ (123456 is your form ID.)

You will need to adjust the form URL and replace the default version with the new one in your email.

ExactTarget - html-mode

ExactTarget 123ContactForm URL

4. Tweak your form URL to accept prefilled values. Here is detailed information on how to prefill form fields using the form URL. In short, here is how your URL should look like with prefilled values:

https://www.123contactform.com/sf.php?s=123contactform-123456&control1111111=JohnDoe&control2222222=john@website.com

Copy this URL and go over the list below:

  • The first part remains unchanged (https://www.123contactform.com/sf.php?s=123contactform-).
  • Replace 123456 with your form ID.
  • control1111111=JohnDoe and control2222222=john@website.com represent the prefilled values assignment. control1111111 and control2222222 are the name attributes of the form fields. Replace them with your own ones. You can retrieve them by inspecting the form code. You can add as many value assignments as you want, connected through &.

5. Add the prefilled values to the URL. These need to be the field codes from your ExactTarget emails. Back to your ExactTarget account, switch to Text mode in your email editor. You can find the field codes in the Personalization dropdown list. For example, the code for the Email field is %%emailaddr%%. Assign these codes as values in your customized form URL. For example:

//www.123contactform.com/sf.php?s=123contactform-123456&control1111111=%%fullname%%&control2222222=%%emailaddr%%

6. Finally, return to the HTML view and modify your email content. Replace the old URL with the new, customized one. Send your email and, when users click on the link to open up the form, the fields to which you’ve assigned values will contain their preassigned values, making the process easier and friendlier.

Leave a Reply

Your email address will not be published. Required fields are marked *