English
Introduction
About 368 wordsAbout 1 min
2025-09-22
The Object Form Page (create/edit page) JS plugin allows developers to customize JS logic on the object create/edit page, implement more complex business logic, and solve requirements that are difficult to address with the standard product alone.
The V2 plugin allows developers to listen to various events on the create/edit page, intercept and process them, and implement custom requirements.
- The V2 plugin supports more features
- The V2 plugin is currently available only through grayscale release. Please contact customer service or the relevant product/R&D team for details
How to choose between V1 and V2 custom plugins?
Introduction to the Plugin Entry File

Plugin Initialization Parameters
| Parameter | Description | Type |
|---|---|---|
| context | The create/edit page context, which encapsulates some basic APIs of the create/edit page, such as obtaining object data. It can be used in the plugin or in custom components implemented by the plugin. See context for details. | Object |
| pluginService | Plugin management service that provides some basic APIs. | Object |
| pluginParam | Basic plugin information or plugin description, required when creating custom components. | Object |
V2 Enable Function
enableCustomPluginV2: this function must be explicitly declared and must return true; otherwise, the plugin will not take effect.
Event Listening
apply: returns the event names (events) you want to listen to and their corresponding handler functions.
event: event name. Different events are used to handle different customization requirementsfunctional: handler function corresponding to the event- Argument 1:
pluginExecResult: an event may be listened to and processed by multiple plugins. This parameter contains the execution result of previous plugins and is very important in some scenarios. - Argument 2:
options: parameters passed in by the event sender, usually including some common basic parameters and event-specific parameters. - Return value: usually returns results required by the specific event to implement custom effects
- Argument 1:
options Properties of Events
| Property | Description | Type |
|---|---|---|
| dataGetter | Data accessor | Object |
| dataUpdater | Data updater | Object |
| masterObjApiName | Main object apiName | String |
| seriesId | Unique identifier of the current create/edit process | String |
| bizApi | Some form-page-specific business API wrappers | Object |
| ... | Other event-specific properties | * |
