Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Pulling data from a Suitelet
I have created a custom email form.
It will be used for employment applications.
There are many, many fields on this form.
What is the best way to get all the field data into the email message?
Right now I am concatenating a variable to hold all the field data.
function simpleEmailForm(request, response)
{
if ( request.getMethod() =='GET' )
{
var form = nlapiCreateForm('EmailForm');
var FirstName = form.addField('firstname','text','Name: First')
var LastName = form.addField('lastname','text','Last');
.
.
.
var Skills1 = form.addField('skills1','text','Skills 1',null,'tabadditonalprofessionalskills');
form.addSubmitButton('Send Email');
response.writePage( form );
}
else
{
var message = "";
message += "Name: " + (request.getParameter('firstname') + " " + request.getParameter('middlename') + " " + request.getParameter('lastname') + "\n\n");