Expand your SuiteScript skills in the Sustainable SuiteScript community for NetSuite developers.

Moar Page Links

Created: September 13, 2017

This week we added Page Links to our List Suitelet.

Page Links are not unique to Lists, however. The N/ui/serverWidget's Form Object also has the same addPageLink method. This means you can add your own Page Links to not only custom Suitelet pages, but also to any native page where you are given access to the Form Object.

For instance, a User Event beforeLoad event is passed a reference to the current Form. You could invoke the addPageLink method of this reference to add your own Page Links to any native page.

function beforeLoad (context) {
  context.form.addPageLink({
    // ...
  })
}