remove_field method

remove_field()

Removes the complete form field, not just the form field special character.

def remove_field(self):
    ...

Remarks

If there is a bookmark associated with the form field, the bookmark is not removed.

Examples

Shows how to delete a form field.

doc = aw.Document(MY_DIR + "Form fields.docx")

form_field = doc.range.form_fields[3]
form_field.remove_field()

See Also