Skip to main content

SetPartialName

Sets new field partial name.

Inherited from ApiBaseField.SetPartialName.

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());