Simple and Short Example of How to create Form in Netsuite's Suitelet
Hi ,
This is one small part of my work where I have to show message that some required parameter is missing.
You can add logic to check if you are getting all required values or not otherwise it will case Suite Script Error on Form.
function showFormDate(request, response)
{
var someid= request.getParameter('someid');
if(someid)
{
//do something , add your logic
}
else
{
var form = nlapiCreateForm('Parameter Missing');
var field1= form.addField('custpage_message','inlinehtml');
field1.setDefaultValue('Parameter is missing');
response.writePage(form);
}
}
This is one small part of my work where I have to show message that some required parameter is missing.
You can add logic to check if you are getting all required values or not otherwise it will case Suite Script Error on Form.
function showFormDate(request, response)
{
var someid= request.getParameter('someid');
if(someid)
{
//do something , add your logic
}
else
{
var form = nlapiCreateForm('Parameter Missing');
var field1= form.addField('custpage_message','inlinehtml');
field1.setDefaultValue('Parameter is missing');
response.writePage(form);
}
}
Comments
Post a Comment
Thanks for you message, please join us on Facebook and Linkedin