OK, now that Netsuite and DNS are configured properly. We need to create some web forms that allow the user to OPT-IN to our subscription. There are 2 different methods for doing this and I’m going to do one of each:
1.) embedding a Netsuite form in an IFRAME within a page on my site.
2.) creating a form using an HTML template which is hosted by Netsuite; but, looks like my site.
This post is going to focus on #1.
Embedded Form.
We are going to create a newsletter signup for as an embedded form. We will link to this page from our home page.
Step 1: Create Online Customer Form (Setup -> Marketing -> Online Customer Forms)
Click on the “New” Button. A pop-up window will appear asking if you wish to create a default form OR custom HTML form. Select Default.
Our form will be fairly basic. Give it a title, description and select the fields you wish to appear on the form.
A couple of things to note, specifically on the “fields”.
“SEARCH” indicates whether or not the form will look for duplicates (and if so, what fields it will SEARCH on). On the Workflow tab, you can decide how to handle duplicates that are found using this “SEARCH”.
You should also note that I have 2 hidden fields: Customer Category and Lead Source. I will be passing this information to the form via Querystring parameters.
On the workflow tab, I’m going to give some instructions on how I wish this form to be processed:
A couple of things to note…
I am setting the lead status to “unqualified”. I am NOT setting the lead source (this will be passed in) BUT I am allowing it to be updated. I am redirecting back to a Thank You page on my site. I am defining how to handle duplicate records AND in this case I am NOT assigning the lead to a Sales Rep.
I am now going to SAVE this form. And then view the form, and select the “External” tab, to get my URL: “Publishable form URL”.
STEP 2: Create the Newsletter Page for your site.
I’m going to create a page: Newsletter.asp.
It will have the same look and feel of the rest of my site, but, where the content usually goes, I will place an iframe.
Here is the code for my iFrame:
<iframe src ="<%=strsource%>" width="100%" frameborder="0" height="300">
Note: strsource is a .asp variable that I will set in a script that runs on the page load. This script will determine the customer category and leadsource and append those two parameters on the form URL copied in the previous step.
My URL looks something like this:
https://forms.netsuite.com/app/site/crm/externalleadpage.nl?compid=xxxxxxx&formid=3&h=ea262cd89578c72bc4ec&category=yyy&leadsource=zzz
Save and upload your page to the website.
Step 3: Create the Thank You page.
I have created a thank you page, the page that gets redirected to upon form submittal from the Workflow tab in step 1. The trick here is that this page has essentially NO style to it, as it will open in the IFRAME from step #2.
Save and upload the page to your website.
Step 4: Test
You should now be able to visit your Newsletter page on your site, and see the embedded Newsletter form from Netsuite and create a lead with a newsletter subscription!