Add or remove percent formatting for a number
You can format a text box or expression box so that numbers that users type into the box are displayed as percentages. For example, a value of 0.2 would be displayed as 20. This formatting affects both how values are displayed and how values are saved. This means that any value typed into a control with percent formatting will be treated as a percent value. So if a user types 30 into a text box that has a percent data format, the saved value would be 0.30. If a user types 0.30, the saved value would be 0.0030.
- In design mode, right-click the text box or expression box whose data you want to format, and then click Control Properties.
- On the Data
tab or the General tab in the Control Properties dialog box, click Format.
Note You can add percent formatting only for text boxes that have a decimal data type or for expression boxes that are formatted as a decimal.
- In the Decimal Format dialog box, do one of the following:
- To format the number as a percentage, click Percentage.
- To remove percent formatting, click Number.
Note Microsoft Office InfoPath 2003 does not add percent symbols to numbers that are formatted as percentages. To add a percent symbol to a control's label, click where you want the percent symbol to appear, and then type %.