Hubert
01/08/2025, 5:24 AMCeligo AI
01/08/2025, 5:24 AMAI generated answer (using internal Slack threads):Based on the conversations, it seems that Twitter Bootstrap is a popular choice for creating responsive screens in Suitelets. However, it's important to note that NetSuite is not designed to work like AJAX websites, so using third-party libraries to make Suitelets responsive might not be standard and could potentially break in the future. Here's a simple example of how you might include the Bootstrap library in your Suitelet:
javascript
/**
* @NApiVersion 2.x
* @NScriptType Suitelet
*/
define(['N/ui/serverWidget'], function(serverWidget) {
function onRequest(context) {
if (context.request.method === 'GET') {
var form = serverWidget.createForm({
title: 'My Suitelet Form'
});
var htmlField = form.addField({
id: 'custpage_html',
type: serverWidget.FieldType.INLINEHTML,
label: 'HTML Field'
});
htmlField.defaultValue = '<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">' +
'<div class="container">' +
' <div class="row">' +
' <div class="col-sm">' +
' One of three columns' +
' </div>' +
' <div class="col-sm">' +
' One of three columns' +
' </div>' +
' <div class="col-sm">' +
' One of three columns' +
' </div>' +
' </div>' +
'</div>';
context.response.writePage(form);
}
}
return {
onRequest: onRequest
};
});
In this example, the Bootstrap CSS is included in an InlineHTML field on the Suitelet form. The HTML for the responsive layout is also included in this field.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
01/08/2025, 5:25 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.874940395
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.862206757
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.856179833
Celigo AI
01/08/2025, 5:25 AM