insertCheckBox method

insertCheckBox(name, checkedValue, size)

Inserts a checkbox form field at the current position.

insertCheckBox(name: string, checkedValue: boolean, size: number)
ParameterTypeDescription
namestringThe name of the form field. Can be an empty string. The value longer than 20 characters will be truncated.
checkedValuebooleanChecked status of the checkbox form field.
sizenumberSpecifies the size of the checkbox in points. Specify 0 for MS Word to calculate the size of the checkbox automatically.

Remarks

If you specify a name for the form field, then a bookmark is automatically created with the same name.

Returns

The form field node that was just inserted.

insertCheckBox(name, defaultValue, checkedValue, size)

Inserts a checkbox form field at the current position.

insertCheckBox(name: string, defaultValue: boolean, checkedValue: boolean, size: number)
ParameterTypeDescription
namestringThe name of the form field. Can be an empty string. The value longer than 20 characters will be truncated.
defaultValuebooleanDefault value of the checkbox form field.
checkedValuebooleanCurrent checked status of the checkbox form field.
sizenumberSpecifies the size of the checkbox in points. Specify 0 for MS Word to calculate the size of the checkbox automatically.

Remarks

If you specify a name for the form field, then a bookmark is automatically created with the same name.

Returns

The form field node that was just inserted.

See Also