name property property

Gets or sets the form field name.

def name(self) -> str:

def name(self, value: str):


Microsoft Word allows strings with at most 20 characters.


Shows how to insert a combo box.

doc = aw.Document()
builder = aw.DocumentBuilder(doc)
builder.write('Please select a fruit: ')
# Insert a combo box which will allow a user to choose an option from a collection of strings.
combo_box = builder.insert_combo_box('MyComboBox', ['Apple', 'Banana', 'Cherry'], 0)
self.assertEqual(aw.fields.FieldType.FIELD_FORM_DROP_DOWN, combo_box.type)
self.assertEqual('Apple', combo_box.result)
# The form field will appear in the form of a "select" html tag. + 'FormFields.Create.html')

See Also