SetExportValue
Sets widget export value.
Syntax
expression.SetExportValue(sValue);
expression - A variable that represents a ApiCheckboxWidget class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| sValue | Required | string | No description provided. |
Returns
boolean
Example
Set checkbox widget export (checked) value in a PDF document.
// How to set export value for a checkbox widget in a PDF document?
// Set export value and display the result in a PDF document.
let doc = Api.GetDocument();
let page = doc.GetPage(0);
let radiobuttonField = Api.CreateRadiobuttonField([10, 10, 25, 25]);
page.AddObject(radiobuttonField);
let widgets = radiobuttonField.GetAllWidgets();
widgets[0].SetExportValue('Export value');
console.log('Export value is: ' + widgets[0].GetExportValue());