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.
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:
| Component | Description |
|---|---|
| Buttons | Trigger specific actions like saving changes or executing scripts. |
| Fields | Can be configured or specialized to capture data effectively. |
| Field Groups | Organize fields in a logical manner, improving usability. |
| Tabs/Subtabs | Help in categorizing information, making forms cleaner and more intuitive. |
| Sublists | Display related records or items right within the custom form. |
| Page Links | Navigate 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:
| Component | Description |
|---|---|
| Buttons | Enable users to trigger specific functions directly from the list. |
| Columns | Display data values that can be editable or read-only, enhancing user control. |
| Page Links | Include 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?
Can SuiteScript 2.x be used to manipulate the DOM when creating custom pages?
What UI components are available for custom list pages created with SuiteScript 2.x?
Is it possible to add navigation links to custom forms using SuiteScript 2.x?
Was this article helpful?
More in Platform
- Style Object Members for Workbook API in NetSuite
The Style object provides customizable properties for workbook formatting in NetSuite, enhancing report and visualization functionality.
- Asynchronous HTTP Requests with SuiteScript Promises
Use SuiteScript to send asynchronous HTTP requests with promises for efficient error handling and response processing.
- Setting Sublist Field Values in SuiteScript
Set values for sublist fields in SuiteScript using the setSublistValue method. Understand required parameters and error handling.
- In This Help Topic
Explore N/log module guidelines, log levels, and script execution logs for efficient logging in SuiteScript.
Advertising
Reach Platform Professionals
Put your product in front of NetSuite experts who work with Platform every day.
Sponsor This Category