# Inserting and Editing Buttons

/text/shared/guide/formfields.xhp
command buttons, see push buttons
controls;adding to documents
inserting;push buttons
keys;adding push buttons
buttons;adding push buttons
press buttons, see push buttons
push buttons;adding to documents
MW changed "adding;" to "inserting;"
Adding a Command Button to a Document
You can use the Form Controls toolbar to add checkboxes, buttons, tables showing data records, and other controls to a document.
To Add a Button to a Document
- Choose View - Toolbars - Form Controls.
- On the Form Controls toolbar, click the Push Button icon.
  The mouse pointer changes to a cross-hair.
- In the document, drag to draw the button.
- Right-click the button and choose Control.
- Specify the properties of the button.
- To change the button label, click the General tab, and edit the text in the Label box.
- To attach a macro to the button, click the Events tab, and click the ... button beside the button action that you want to run the macro. In the Assign Macro dialog, locate the macro that you want to use, and then click OK.UFI: see #i34509#
- Close the Properties dialog.
- (Optional) Specify the properties of the form that the button belongs to.
- Right-click the button and choose Form.
- The Form Properties dialog opens.
- Specify the properties for the form and then close the dialog.