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 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.