Custom Pages with SuiteScript 2.x for NetSuite

Create custom forms and list pages using SuiteScript 2.x, enhancing your NetSuite user interface with tailored elements.

·3 min read·View Oracle Docs

TL;DR

You can use SuiteScript 2.x to create custom forms and list pages, allowing for personalized and optimized user interfaces in NetSuite. This enhances the overall experience by integrating specific functionalities and elements that meet business needs.

How to Create Custom Forms with SuiteScript 2.x

Using SuiteScript 2.x, developers can design custom forms that improve user interaction with the NetSuite platform. Three primary methods exist for creating custom forms:

  • Suitelet: Offers maximum flexibility by enabling direct control over data processing and form customization.
  • Portlet: Used within dashboard environments, enhancing the data visibility in a compact format.
  • Before Load User Event Script: This script type allows modification of standard forms when users are editing records.

Each of these methods supports various UI components, including buttons, fields, tabs, and sublists. Here’s a brief overview of supported UI components:

ComponentDescription
ButtonsTrigger specific actions like saving changes or executing scripts.
FieldsCan be configured or specialized to capture data effectively.
Field GroupsOrganize fields in a logical manner, improving usability.
Tabs/SubtabsHelp in categorizing information, making forms cleaner and more intuitive.
SublistsDisplay related records or items right within the custom form.
Page LinksNavigate users through related records or external sites.

How to Create Custom List Pages with SuiteScript 2.x

Similar to custom forms, custom list pages can also be developed using SuiteScript 2.x:

  • Suitelet: Ideal for creating dynamic lists that require direct data handling.
  • Portlet: Useful for displaying data in a dashboard environment.

For custom list pages, various UI components can also be implemented:

ComponentDescription
ButtonsEnable users to trigger specific functions directly from the list.
ColumnsDisplay data values that can be editable or read-only, enhancing user control.
Page LinksInclude breadcrumb or crosslinks for easy navigation
g between list pages and records.

Important Note

SuiteScript's UI capabilities are mediated strictly through its APIs; it does not allow manipulation of the Document Object Model (DOM). This ensures that all customizations are secure and maintain the integrity of the NetSuite environment.

Who This Affects

  • Developers: Those creating and maintaining custom UI elements in NetSuite.
  • Administrators: Managing the deployment of custom forms and pages.

Key Takeaways

  • SuiteScript 2.x enables the creation of tailored custom forms and list pages in NetSuite.
  • Utilize Suitelets and Portlets for maximum control and flexibility in UI design.
  • Ensure all UI modifications are done through SuiteScript APIs for security and stability.

Source: This article is based on Oracle's official NetSuite documentation.

Frequently Asked Questions (4)

What are the primary methods for creating custom forms with SuiteScript 2.x in NetSuite?
The primary methods for creating custom forms with SuiteScript 2.x are Suitelet, Portlet, and Before Load User Event Script. Suitelets offer the most flexibility, Portlets are best for dashboard environments, and Before Load User Event Scripts modify standard forms during record editing.
Can SuiteScript 2.x be used to manipulate the DOM when creating custom pages?
No, SuiteScript 2.x does not allow manipulation of the Document Object Model (DOM). Instead, all customizations must be done through its APIs to ensure security and maintain the integrity of the NetSuite environment.
What UI components are available for custom list pages created with SuiteScript 2.x?
For custom list pages, you can implement UI components such as Buttons, which trigger specific functions, Columns for displaying data, and Page Links for easy navigation between list pages and records.
Is it possible to add navigation links to custom forms using SuiteScript 2.x?
Yes, you can include Page Links in custom forms to navigate users through related records or direct them to external sites, enhancing the user experience and navigation ease.
Source: SuiteScript 2.x Custom Pages Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in Platform

View all Platform articles →