Hi everyone,
I believe i'm posting this post in correct area... This is about suitelet
What i need to be done is, i need to create a page using suitelet api and css.
Please be kind to check the following code.
i can not see the HTML part once i run the script, it only shows the text boxes i created using suitelet API. i need both to be displayed. Please help me to solve this problem..
Thank you..!
function demoHTML(request, response)
{
var html = '<html><body><h1 style="color:#FF0000">Suitets Examples Form Starts</h1>';
response.write( html );
if ( request.getMethod() == 'GET' )
{
var form = nlapiCreateForm('Simple Form');
var field = form.addField('textfield','text', 'Text');
field.setLayoutType('normal', 'startcol')
form.addField('datefield','date', 'Date');
form.addField('currencyfield','currency', 'Currency');
form.addField('textareafield','textarea', 'Textarea');
form.addSubmitButton('Submit');
response.writePage( form );
}
else
dumpResponse(request,response);
var html = '<h1 style="color:#000000">Suitets Examples Form Ends</h1></body></html>';
response.write( html );
//prefix header with Custom-Header. See nlobjResponse.setHeader(name, value)
response.setHeader('Custom-Header-Demo', 'Demo');
}