Creating a Simple Scripted InfoPath Form

In this section we will create a very simple InfoPath form, primarily so we can explore some foundational aspects of how the pieces of InfoPath 2003 fit together. We will create the form using both JScript and VBScript because there are a couple of InfoPath's features that can make it difficult to use VBScript if you are unaware of them.

The form template we will create is very simple. We will add a button to the form area, add an event handler for the OnClick event, and add some brief script code to display an alert in JScript parlance (a message box in VBScript terminology).

JScript

Follow these steps:

1.
Open InfoPath if it isn't already open by clicking the Start button and selecting All Programs, ...

Get Microsoft® Office InfoPath™ 2003 Kick Start now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.