HOW TO INCLUDE HTML AND CSS IN SUITELET SCRIPT?

HOW TO INCLUDE HTML AND CSS IN SUITELET SCRIPT?

As a NetSuite Solution Provider this thime we will tell you about Suitelets.Suitelets are of two types- Front end and Back end. Front end suitelet is used for creating forms, assistants etc. Sometimes netsuite solution provider can’t create the UI by using only Netsuite API’s. We might have to use html and css to build the page. The following ocde shows how it can be done:var html = ‘<!DOCTYPE html>n’
+'<html>n’
+'<head>n’
+'<link href=”https://system.netsuite.com/core/media/media.nl?id=1234&_xt=.css” rel=”stylesheet” media=”print” />n’
// replace this with your css url from file cabinet
+'</head>n’
+'<body>n’

+'<h2>HTML Forms</h2>n’

+'<form action=”/action_page.php”>n’
+’ First name:<br>n’
+'<input type=”text” name=”firstname” value=”Mickey”>n’
+'<br>n’
+’Last name:<br>n’
+'<input type=”text” name=”lastname” value=”Mouse”>n’
+'<br><br>n’
+'<input type=”submit” value=”Submit”>n’
+'</form> n’

+'<p>If you click the “Submit” button, the form-data will be sent to a page called “/action_page.php”.</p>n’

+'</body>n’
+'</html>n’;

response.write(html);

Feel free to reach your NetSuite Solution Provider , TheSmilingCoders for proper netsuite implementationnetsuite consultation , netsuite customizationnetsuite Support,netsuite Training, contact us at:

Email : [email protected]

Facebook : https://www.facebook.com/Smiling-Coders-Netsuite-Training-Implementation-and-Support-1591053827660082/

Linkedin : https://www.linkedin.com/company/netsuite-academy/


Log out of this account

Leave a Reply