This post (and the following two) will explain each of these components provide the script that was used and explain (where relevant) where outside agencies were used to gain an understanding of how the process should be created.
Metadata(en-GB, Question, Label)
TitleList "" define
{
Mr "Mr",
Mrs "Mrs",
Ms "Ms",
Dr "Dr"
} asc;
SeverityList "" define
{
Mild "Mild",
Annoying "Annoying",
Concerning "Concerning",
Upsetting "Upsetting",
Severe "Severe"
};
title "Title"
style(ElementAlign = "Right",
Control(Type = "DropList"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
categorical [1..1]
{
use TitleList –
};
fname "First Name:"
style(ElementAlign = "Right", Width = "300px", Height = "17px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
text [..50];
lname "Last Name:"
style(ElementAlign = "Right", Width = "300px", Height = "17px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
text [..50];
Address1 "Address:"
style(ElementAlign = "Right", Width = "300px", Height = "17px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
text [..100];
Address2 " "
style(ElementAlign = "Right", Width = "300px", Height = "17px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
text [..100];
Town "Town:"
style(ElementAlign = "Right", Width = "200px", Height = "17px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
text [..100];
PostCode "Postcode:"
style(ElementAlign = "Right", Width = "100px", Height = "17px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
text [..10];
eMail "e-Mail:"
style(ElementAlign = "Right", Width = "300px", Height = "17px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
text [..100];
Phone "Phone (Home)"
style(ElementAlign = "Right", Width = "150px", Height = "17px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
text [..20];
Mobile "Mobile"
style(ElementAlign = "Right", Width = "150px", Height = "17px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
text [..20];
Phone2 "Phone (Work)"
style(ElementAlign = "Right", Width = "150px", Height = "17px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
text [..20];
IncidentDate "Date:"
style(ElementAlign = "Right", Width = "150px", Height = "17px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
date;
IncidentDestination "Destination"
style(ElementAlign = "Right", Width = "200px", Height = "17px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
text [..50];
IncidentDepart "Depart From:"
style(ElementAlign = "Right", Width = "300px", Height = "17px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
text [..50];
IncidentExpected "Depart Time (Expected)"
style(ElementAlign = "Right", Width = "100px", Height = "17px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
text [..10];
IncidentActual "Depart Time (Actual)"
style(ElementAlign = "Right", Width = "100px", Height = "17px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
text [..10];
IncidentSeverity "Severity"
style(ElementAlign = "Right", Height = "17px",
Control(Type = "DropList"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
categorical [1..1]
{
use SeverityList -
};
IncidentDescription "Description"
style(Width = "500px", Height = "68px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
text [..1000];
ExpectedOutcome "Expected Outcome"
style(ElementAlign = "Right", Width = "300px", Height = "17px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
text [..200];
CostIncurred "Cost Incurred (£)"
style(ElementAlign = "Right", Width = "100px", Height = "17px",
Control(Type = "SingleLineEdit"))
labelstyle(Width = "70px")
templates(Question = "SameLineQuestion.htm")
long;
Personal -
page(title, fname, lname, Address1, Address2, Town, PostCode, eMail, Phone, Mobile, Phone2);
Incident -
page(IncidentDate, IncidentDestination, IncidentDepart, IncidentExpected, IncidentActual, IncidentSeverity, ExpectedOutcome, CostIncurred, IncidentDescription);
End Metadata
For those of you with PASW Data Collection ver
sion 6 or later.
The metadata and routing are located in the attached mdd. If you would like to know more about the metadata and routing contained in this post, please download the DDL (a technical manual on Data Collection) from Data Collection Document Library.