To view the sample for this task, import the advanced sample projects as described in Import the Forms Advanced Samples. The sample forms and business object model for the task described in this section are contained in the
forms.samples.bom sample project.
The form for this task (CapturePersonalDetails.form) is at the following location:
The business object model (FormsSamplesBOM.bom) is at the following location:
The business object model in the forms.sample.bom project models a
PatternConstraints class, which makes use of the primitive types
E-Mail Address,
Post Code,
ZIP Code,
Social Security Number,
Social Insurance Number,
National Insurance Number,
NA Telephone Number, and
UK Telephone Number. Each of these primitive Text extension types has a pattern restriction that is automatically used to perform client-side validation of form entries. See the additional descriptions under
Properties > <bom-primitive-type> > Description:
The Capture Personal Details form shows a
Person, his or her personal details and preferences. Observe how the patterns modelled in the business object model are applied to user-specified form data.