ebs.importClientScript
Imports a custom function defined within a client script library.
This method is available within the following entities and JavaScript attributes:
| Entity | Attribute |
|---|---|
| Entity Form | Before Events, After Events |
| Entity Form Section | After Events, After Section Save |
|
Custom Form |
After Generate Events |
|
Entity View |
After Generate Js |
|
HtmlWidget |
JavaScript |
Syntax
Copy
ebs.importClientScript(name: "<<i>client script library_name</i>>"): any
| Parameter | Description |
|---|---|
| client script library_name | The name of the client script library which contains the custom function that you want to use. |
HINT Put the cursor between the two quotation marks (“|”) and press CTRL+SPACE. You will be suggested the available client script libraries and you can easily select the one that you want to import.
Response
| Key | Description |
|---|---|
custom function result
|
The result of the custom function defined in the specified client script library. |