Click or drag to resize

deleteOption Method

Deletes an existing PdfOption Class of this ComboField or ListField.

Syntax
JavaScript
function deleteOption(index);

Parameters

name

Type: Integer

The zero-based index of an option in this PdfObject Class.

Return Value

Type: Boolean

Returns true if the operation completed successfully; otherwise, false.

Remarks

This method must only be called on objects where the getType Method is a ComboField or ListField.

This method can not be called on objects where isLocked Method is true. unlock Method must be called first.

See Also