Sign up to receive SuiteScript examples and advice directly in your email inbox.

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) {
    // ...