HTML Files for Online Form Templates
When creating an online form template, you decide which fields to include and how to arrange them. You can also add styling to the page.
The following must be included in the HTML code:
-
<NLFORM> and </form> tags in the code of the page
-
<html> and </html> tags
-
tags for each field included on the form
-
a button respondents use to submit the form
To place fields on an online customer form, use tags from the table below:
Field |
Tag |
---|---|
Company Name |
<NLCOMPANYNAME> |
Address Line 1 |
<NLADDRESS1> |
Address Line 2 |
<NLADDRESS2> |
City |
<NLCITY> |
Comments |
<NLCOMMENTS> |
Confirm Password |
<NLPASSWORD2> |
Contact First Name |
<NLFIRSTNAME> |
Contact Last Name |
<NLLASTNAME> |
Contact Middle Initial |
<NLMIDDLENAME> |
Country |
<NLCOUNTRY> |
Currency |
<NLCURRENCY> |
Customer Category |
<NLCATEGORY> |
|
<NLEMAIL> |
E-mail Preference |
<NLEMAILPREFERENCE> |
Give Access |
<NLGIVEACCESS> |
Lead Source |
<NLLEADSOURCE> |
Login Password |
<NLPASSWORD> |
Partner |
<NLPARTNER> |
Partner Code |
<NLPARTNERCODE> |
Phone Number |
<NLPHONE> |
Promotion |
<NLPROMOCODE> |
Shipping Item |
<NLSHIPPINGITEM> |
State / County |
<NLSTATE> |
Taxable |
<NLTAXABLE> |
Unsubscribe from Campaigns |
<NLUNSUBSCRIBE> |
Web Address |
<NLURL> |
Zip/Postal Code |
<NLZIPCODE> |
To place fields on an online case form, use tags from the table below:
Field |
Tag |
---|---|
Company Name |
<NLCOMPANYNAME> |
Name |
<NLENTITYID> |
|
<NLEMAIL> |
Message |
<NLINCOMINGMESSAGE> |
Subject/Title |
<NLTITLE> |
Case Origin |
<NLORIGIN> |
Case Type |
<NLCATEGORY> |
Contact First Name |
<NLFIRSTNAME> |
Contact Last Name |
<NLLASTNAME> |
Contact Middle Initial |
<NLMIDDLENAME> |
Phone Number |
<NLPHONE> |
Start Date |
<NLSTARTDATE> |
Start Time |
<NLSTARTTIME> |
Support Issue |
<NLISSUE> |
Support Item |
<NLITEM> |
When you create your online form, you can have NetSuite add field names for you, or you can label the fields yourself in your template.
Your form should also include a button your customers use to submit the form to your NetSuite account. The HTML code for this button is:
<input type="submit" value="Button Text">
You can change the button text by editing the value in the code. For example, if you want the button to say Submit Form, the code would be:
<input type="submit" value="Submit Form">
Below is a sample online form template:
<HTML>
<Head>
<Title>OnlineLeadForm</Title>
<link href="/images/stylesheet.css " rel="stylesheet" type="text/css">
<style type="text/css">
</style>
</Head>
<Body>
<NLFORM>
<table width="60%" border="0" align="center">
<tr>
<td bgcolor="#FFFFFF" valign="bottom" align="center" height="55">
<p align="left"> <NSLOGO>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" valign="middle" align="center" height="1">
<hr color="#CCCCCC" align="left" size="1"></td>
</tr>
<tr>
<td class="textll"><h1>
<center>
<span class="mainheader1 style1">Register With Us!</span>
</center>
</h1>
<p align=Left> This is a sample online form template.
<p> New leads would complete the fields below:
<p><b>Name</b> <NLFIRSTNAME> <NLLASTNAME><br>
Here you might enter special instructions.
<p><b>Company Name</b> <NLCOMPANYNAME>
<p><b>Email Address</b> <NLEMAIL>
<p><b>Street Address</b> <NLADDRESS1>
<p><b>City</b> <NLCITY>
<p><b>State</b> <NLSTATE>
<p><b>Zip/Postal Code</b> <NLZIPCODE>
<p><input type="submit" value="Button Text"></p>
<p align="center"><a href="http://www.linkbacktoHomePage.com">Company Home</a>
<a href="http://www.link1.com">Support</a> | <a href="http://www.link2.com">Help</a>
</td>
</tr>
</table>
</form>
</Body>
</HTML>
This example uses a stylesheet. You can reference a cascading stylesheet in your online forms if you store the CSS file in the Images folder of your File Cabinet. You should use a relational URL to reference the stylesheet. In the example above, the reference is:
<link href="/images/stylesheet.css " rel="stylesheet" type="text/css">
You must include all appropriate end tags as well as <html> and <body> tags for NetSuite to recognize this file as an HTML file.
After you prepare your template file, upload it to your NetSuite file cabinet. For more information, see Uploading an Online Form Template.