Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
How to Refresh the List in suitelet on field change
i have created a suitelet. I want to refresh my list when a field is changed on the suitelet.
below is the code for the suitelet:
function suitelet(request, response){
if ( request.getMethod() == 'GET' )
{
var form = nlapiCreateForm('First Form');
form.setTitle('My Test Suitelet');
form.addField('email','email','Email');
form.addField('employee','select','Employee','employee');
form.setScript('customscript311');
var contacts = form.addSubList('custpage_contacts', 'list', 'Custom Contacts', 'general');
contacts.addField('custpage_checkbox', 'checkbox');
contacts.addField('email', 'email', 'Email');
contacts.addField('firstname','text','Name');
if(nlapiGetFieldValue('employee')== null || nlapiGetFieldValue('employee')==''){
var columns = new Array;
columns[0]= new nlobjSearchColumn('email');
columns[0]= new nlobjSearchColumn('firstname');