4.3. Previewing the Form

Now that all the work has been done to create the form, it is time to test the work that you have done. It's a good idea to preview a form before you publish the form for other users. To accomplish this, click the Preview Form toolbar button or choose FilePreview Form.

NOTE

When creating larger forms, test the form as you create major sections. Make sure that the form is looking as you want it when it is to be used in production.

Note that when you make changes to data in Preview mode and submit the data, the data is actually submitted to the database as if you had published the form or opened the form for filling. The reason it is referred to as previewing is because you are viewing it from Design mode rather than from Fill mode.

4.3.1.

4.3.1.1. Try It Out: Querying a Customer Record by Region

The first thing to test when previewing the form is to make sure that the query field is working correctly. To test this feature using the form created in the chapter:

  1. Click the Preview Form toolbar button.

  2. If necessary, scroll down to the Query Fields section.

  3. Type WA in the Region query field.

  4. Click Run Query. The record of the customer who is located in WA is displayed, as shown in Figure 4-15.

4.3.1.2. How It Works

When the Region field was added from the ...

Get Beginning InfoPath™ 2003 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.