Question:
I’d like to create a page similar to the Contact Us page, which would enable customers to submit feedback on my WebStore. The fields on the form would include:
First Name (required)
Last Name (required)
City (required)
E-mail Address (required)
Phone Number (optional)
Comments (required - maximum of 2000 characters)
In addition, a Submit button would be required at the bottom of the page.
How do I create such as form?
Answer:
Create a custom content page, and as a test, insert the following:
Obviously, you can enhance the appearance of this example with a table, proper styles applied to the text, and so on.
The name variable is the name of the process, which will appear in the page’s title bar (for example, “Feedback”). All variables, the contents of which you want e-mailed to you, must begin with either required_ or optional_. Required fields must be prefixed with required_. Any field name that contains email will undergo a further validation process to ensure that it’s a valid e-mail address.
For more information on creating custom content, refer to: How do I add content to my Home Page
Question:
I’d like to integrate Constant Contact with my web form. How do I send the form details to a Constant Contact Mailing List of my choice?
Answer:
Taking the above form, all you have to do is add the following extra field:
anywhere within the opening and closing FORM tags. This will submit the following accepted fields to Constant Contact:
first_name
middle_name
last_name
job_title
company_name
work_phone
home_phone
address_line_1
address_line_2
address_line_3
city
state
country
postal_code
sub_postal_code
custom_field_1
custom_field_2
custom_field_3
custom_field_4
custom_field_5
The form fields you wish to pass to Constant Contact must match those listed above. Each of the fields can still be made required or optional by using the required_ or optional_ prefixes as desribed above in the sample form.
Question:
I’d have multiple web forms. Do I have to go back into the Web Store Manager each time to change the mailing list name?
Answer:
The Constant Contact integration has been designed in such a way that you can simply pass in the name of the mailing list to Constant Contact if it differs from the one defined in your Web Store Manager. Assuming the mailing list already exists in Constant Contact, then simply add this field
anywhere within the opening and closing tags. This append the submitted details from the webform to the Constant Contact mailing list name you have chosen.