AddOption
Adds options to checkbox group.
Inherited from ApiCheckboxField.AddOption.
Example
Add an option for checkbox field group in a PDF document.
// How do I add the option in a PDF document?
// Add the option using a checkbox field object in a PDF document.
let doc = Api.GetDocument();
let page = doc.GetPage(0);
let checkboxField = Api.CreateCheckboxField([10, 10, 25, 25]);
page.AddObject(checkboxField);
checkboxField.AddOption(0, [10, 30, 25, 45], 'Choice 2');
console.log('Toggle to off is: ' + checkboxField.IsToggleToOff());