InfoPath with SharePoint 2010 : Track Changes in a Form - Display a Changes Counter
|
| Solution: | Add a field to the Navigation Control section to display the change number. |
While navigating through the changes, it helps users to understand where they are in relation to the changes. To provide this functionality, follow these steps:
1. | Drag a text box onto the second row of the Change History section. |
2. | Rename the field to DisplayChangesCounter. |
3. | Set the default value equal to the concatenation of ViewChanges-1, the word "of" with padded spaces, and the maximum NumberOfChanges value, as shown in Figure 1, to produce the change counter display. |
Figure 1. Concatenating the values produces the change counter display.
Previewing your form now displays the change counter information, as shown in Figure 2, alerting users of the current change they are viewing.
Figure 2. The change counter alerts the user of the current change that is being viewed.
Tip
To enhance the interface, make the DisplayChangesCounter text box read-only and remove any borders or shading. Change the alignment of the text to Center.