Friday, March 25, 2011

InfoPath: Setting default formatting for controls per view

When you are busy designing an InfoPath form, you normally have a certain look and feel you want to implement: font, font size, font colour, etc.  One also tends to have different settings for different controls, like list boxes, buttons, rich text boxes, etc.  And it can be quite time consuming to go and set each of these controls to the desired formatting over and over again.

Luckily there is a way to set all the default formatting of the controls on your current view in one central place.  To get to the View Properties dialog, do the following, depending on which version of InfoPath you are running.

InfoPath 2007:
  1. Go to Views in the task pane and select a view
  2. Now click on "View Properties" below the view selection box
InfoPath 2010:
  1. Select the Page Design tab on the Ribbon
  2. Now click on "Properties" under the View Name
A dialog box will appear.  Select the Text Settings tab. 


You can now set the formatting defaults to all the controls you will be using.  Unfortunately, you will need to repeat this process for every view on your form.

2 comments:

  1. If you are just interested in changing the font from Verdana to f.ex. Arial, it is faster to save your form av source-files, and use a texteditor to replace all instances of the word Verdana to the name og the font you want. Open the manifest-file and save as a normal InfoPath-form again.

    ReplyDelete
  2. anyone know how I can get the font color to change for only edits to form data in a certain view.
    I want to be able to differentiate the original data entered from the changes made when they are in the new view.

    ReplyDelete