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.
Suitelet List & Client Script
Has anyone been able to add a button to a Suitelet that creates a List and run the function? It seems like the client script is simply not being loaded at all.
I've tries about everything I can think of and my browser is giving me an error that says "Uncaught ReferenceError: require is not defined".
/**
*@NApiVersion 2.x
*@NScriptType Suitelet
*/
define(['N/ui/serverWidget', 'N/search', 'N/runtime', 'N/url'],
function(ui, search, runtime, url) {
function onRequest(context) {
...
var list = ui.createList({
title: 'Funding Liability',
style: ui.ListStyle.REPORT,
clientScriptFileId: 1077191
});
...
list.addButton({
id : 'custpage_buttonId',
label : 'Test',
functionName : "dosomething"
});
...