SetPartialName
Sets new field partial name.
Syntax
expression.SetPartialName(name);
expression - A variable that represents a ApiBaseField class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| name | Required | string | The new partial name for the field. |
Returns
boolean
Example
Assign a local name to a form field in a PDF.
// How do I set the local name for a form field in a PDF?
// Define the partial name property of a form field in a PDF.
let doc = Api.GetDocument();
let page = doc.GetPage(0);
let textField = Api.CreateTextField([10, 10, 160, 30]);
page.AddObject(textField);
textField.SetPartialName('EXAMPLE');
textField.SetValue('Field partial name is: ' + textField.GetFullName());