1. Select the button.
  2. Under Control Tools, on the Properties tab, in the Button group, select the behavior from the Action box.
  1. Configure the options associated with the selected action, as follows:
    • Submit Click Submit Actions then select the data connection and destination that data will be sent to, or indicate if rules or code will be used to control where the data from the form is submitted. Click Advanced and indicate what message will be displayed if the form submission fails or is completed successfully. Indicate what will happen after the form is submitted by selecting it from the After submit box.
    • Refresh A button with the Refresh action assigned refreshes all external sources of data. To specify only one, click ControlProperties, and then click Settings. Click One secondary data source, then select the data source you want.
      • Rules and Custom Code For instructions regarding adding an action rule to a button, see Add rules for performing other actions. For instructions regarding adding custom code to InfoPath, see InfoPath 2010 Developer Reference for Form Templates.
    • Update Form Update Form does not have any options associated with it.
    • Run Query Run Query does not have any options associated with it.
    • New Record New Record does not have any options associated with it.

Change the label of a standard button

For standard button controls, you can change the label to reflect the type of action that the button will perform.

  1. Select the button.
  2. Under Control Tools, on the Properties tab, in the Button group, enter the value in the Label field.
  3. Press Enter.

Change the picture on a picture button

For picture button controls, you can set two pictures: the picture that is displayed on the button by default, and the picture that the button shows when you hover the cursor over it. Do the following to set the picture and hover picture on a picture button control:

  1. Select the picture button control.
  2. Under Control Tools, on the Properties tab, in the Picture Button group, click either Picture or Hover Picture, depending on which picture you want to set.
  1. Select the picture that you want to use.
  2. Click Insert.

Layout tips

Use the following tips to help you refine the appearance, size, and other aspects of a button control: