-
It is common to need two or more list boxes where the choices in one are dependant on the value of another. This is known as a cascading list. A cascade can occur with as few as two levels up to any number of levels. Some common scenarios which require...
-
It is common to need two or more list boxes where the choices in one are dependant on the value of another. This is known as a cascading list. A cascade can occur with as few as two levels up to any number of levels. Some common scenarios which require...
-
InfoPath provides the SwitchView method to allow you to programmatically switch views from within your code. But SwitchView is a method of the View object, which does not exist until after the OnLoad event has completed. Any attempt, therefore, to use...
-
The Format Painter, located on the Standard toolbar, is a very useful tool for applying established formatting from one item to another. It avoids the potentially lengthy process of applying a complex combination of formatting styles by use of the menus...
-
Changing the checked and cleared values of a check box bound to a field in the main data source is easily accomplished using the built-in UI on the Data tab of the Check Box Properties dialog box. Changing the checked and cleared values of a check box...
-
The first time a form template is launched, InfoPath places it into its form template cache. On each subsequently launch, InfoPath will first check to see whether the template is already in the cache. This is very beneficial for forms that are only available...
-
The InfoPath designer only allows you to change the color of a hyperlink. It does not allow you to remove the underline text decoration, nor does it allow you to create a separate color for when the mouse pointer is hovering over the hyperlink or for...
-
When creating numbered lists in InfoPath, you might need to have the numbers of a second list continue where the first list left off. In Microsoft Word you can right-click the numbers of the second list and choose Continue Numbering. You cannot do this...
-
When creating a purchase order you need to gather the user's billing information as well as their shipping information. The user might want their order shipped to their billing address, in which case their shipping address is the same as their billing...
-
When using the text highlighter on the contents of a rich text field, or on the contents of a view in the designer, InfoPath insert a font element around the text being highlighted, setting the background color to the selected highlight color. The following...
-
You might have a button in your form—such as a submit button—that you want to prevent the user from being able to click until all required form fields are filled in. This can be done using conditional formatting. The complexity of the conditional...
-
The OnValidate event fires for each field in your main DOM before the OnLoad event is fired. This allows you to write validation code to add custom errors to the Errors collection for invalid fields before the user ever sees the view. This might be necessary...
-
If you design your form to strictly layout over a background picture, you will find that when you print or use print preview your form no longer aligns with the background picture. Using a grid background picture, Figure 1 shows the extent of the layout...
-
When you bind an Expression Box to a Rich Text field you might be surprised to find that all of the formatting and rich content are gone, and that you are left with a single-line string of plain text. Getting the rich content to display requires only...
-
The XPath axis, preceding-sibling, can be a bit confusing to use. It doesn't work the way one would expect at all. In fact, it is quite backward from what one would expect. To me it made sense that if I wanted the sibling just before where I was currently...