Form.addPageLink(options)
Method Description |
Adds a link to a form.
Note:
You cannot choose where the page link appears. |
Returns |
void |
Supported Script Types |
Suitelets User event scripts -beforeLoad entry point For more information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Since |
2015.2 |
Parameters
The options parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
|
string |
required |
The text label for the link. |
2015.2 |
|
string |
required |
The type of page link to add. Use the serverWidget.FormPageLinkType enum to set the value. |
2015.2 |
|
string |
required |
The URL for the link. |
2015.2 |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/ui/serverWidget Module Script Samples.
//Add additional code
...
var form = serverWidget.createForm({
title : 'Simple Form'
});
form.addPageLink({
type : serverWidget.FormPageLinkType.CROSSLINK,
title : 'NetSuite',
url : 'http://www.netsuite.com'
})
...
//Add additional code