Insert a button

Microsoft Office InfoPath

Show All Show All

Insert a button

You can create a button on your form to make it easy for users to perform common tasks, such as submitting the form. You can also associate a button with script that runs when a user clicks the button.

  1. In design mode, place the insertion point where you want to insert the button.
  2. If the Controls task pane is not visible, click More Controls on the Insert menu.
  3. In the Controls task pane, click Button.
  4. Double-click the button icon and, in the Button Properties dialog box, click the action you want the button to perform in the Action list.

    ShowAvailable actions

  5. In the Label box, type the text that you want to appear on the button.
  6. If you chose the Script action and you want to write script to associate with the button, click Microsoft Script Editor. In Microsoft Script Editor, type the script that you want to run when the button is clicked.