Professional > Interview scripting > Writing interview scripts > Creating questionnaire wizards for UNICOM Intelligence Author > UNICOM Intelligence Author questionnaire wizard examples > Complete source example
 
Complete source example
The following is a complete example of a Source script:
FormatGrids:
'--- Start of IOM Script item FormatGrids ---
IOM.DefaultStyles.Grids[GridStyleTypes.gsCell].Cell.Width = "5em"
'--- End of IOM Script item FormatGrids ---

FormatTexts:
'--- Start of IOM Script item FormatTexts ---
Q1.Style.Control.Type = ControlTypes.ctSingleLineEdit
Q1a.Style.Control.Type = ControlTypes.ctSingleLineEdit
Q1b.Style.Control.Type = ControlTypes.ctSingleLineEdit
Q1c.Style.Control.Type = ControlTypes.ctSingleLineEdit
'--- End of IOM Script item FormatTexts ---

'--- Start of page Page ---

Page.Q1.Style.Columns = 40
Page.Q1.Style.Rows = 1
Page.Q1a.Style.Columns = 40
Page.Q1a.Style.Rows = 1
Page.Q1b.Style.Columns = 40
Page.Q1b.Style.Rows = 1
Page.Q1c.Style.Columns = 40
Page.Q1c.Style.Rows = 1
Page.Ask()
'--- End of page Page ---

'--- Start of page Page1 ---




Page1.Ask()
'--- End of page Page1 ---

'--- Start of page Page2 ---



Page2.Ask()
'--- End of page Page2 ---

Q9a.Ask()

Q9b.Categories.Filter = Q9b.DefinedCategories() - Q9a
Q9b.Ask()

Q10.Ask()

Q11.Ask()

Q12.Ask()

Q13.MustAnswer = true
Q13.Ask()

Q14.Ask()

Q15a.MustAnswer = true
Q15a.Ask()

Q15aGoTo:
If Not (Q15a.ContainsAny(Q15a.Categories[0])) Then

Goto Q16a

End If

Q15b.Ask()

Q15c.Ask()

Q15d.MustAnswer = true
Q15d.Ask()
If Q15d >= {NO} Then Goto Q16a

Q15e.Ask()

Q16a:
Q16a.MustAnswer = true
Q16a.Ask()

Q16b.MustAnswer = true
Q16b.Ask()

Q16c.Ask()

ThankU.Show()
Metadata (en-US, Question, Label)
HDATA -
[
Creator = "InterviewBuilder",
CreatorVersion = "2.1",
WizardPath = ".\QWzd\Cosmetics Awareness Questionnaire Wizard.mdd"
];

MainBrand "" define
{
};
ComparisonBrands "" define
{
};
OtherBrands "" define
{
};

Q1 "Full name:"
text [..40];

Q1a "Address:"
text [..40];

Q1b "Postcode:"
text [..40];

Q1c "Telephone No."
text [..40];

Q2 "Head of Household's Occupation:"
text;

Q3 "Class:"
categorical [..1]
{
B "B",
C1 "C1",
C2 "C2"
};

Q4 "Age:"
categorical [..1]
{
_20_24 "20-24",
_25_34 "25-34",
_35_45 "35-45"
};

Q5 "Gender:"
categorical [..1]
{
Female "Female",
Male "Male"
};

Q6 "Marital Status:"
categorical [..1]
{
Married "Married",
Single "Single",
Div_Wid_Sep "Div/Wid/Sep"
};

Q7 "Children in Household"
categorical [..1]
{
_0_4 "0-4",
_5_10 "5-10",
_11_16 "11-16",
No_children "No children"
};

Q8 "Work Status:"
categorical [..1]
{
Full_time "Full-time",
Part_time "Part-time",
No_paid_job "No paid job"
};

Q9a "Please name some brands of brands of cosmetics and facial skincare products."
categorical
{
use MainBrand sublist "",
use ComparisonBrands sublist "",
use OtherBrands sublist ""
}
helperfields (
"Other" ""
text [1.. ];
);

Q9b "Which of these other brands of cosmetics and facial skincare products have you heard of?"
categorical
{
use MainBrand sublist "",
use ComparisonBrands sublist "",
use OtherBrands sublist ""
};

Q10 "Now I would like to ask your opinion of some of these brands. For each statement I read out, I would like you to tell me
which of the brands on this card you think it applies to. You may mention as many or as few as you like. It does not matter
if you haven't used all these brands yourself, we would like to know what you think of them."
loop
{
use MainBrand sublist "",
use ComparisonBrands sublist "",
use OtherBrands sublist ""
} fields -
(
GV1 "GV1"
categorical
{
Are_really_moder "Are really modern and up to date",
Are_quality_bran "Are quality brands",
Offers_a_wide_ra "Offers a wide range of products",
Offers_the_lates "Offers the latest colors",
Offer_good_value "Offer good value products",
Display_their_ra "Display their ranges in a way that makes it easy to find the products you want"
};

) column expand grid;

Q11 "Imagining __brand1__ came to life as a brand, which of the following do you think would best describe how you would feel
about it?"
categorical [..1]
{
One_of_my_closes "One of my closest friends",
Quite_a_good_fri "Quite a good friend, who I'd have some thing in common with",
Someone_I_d_get_ "Someone I'd get along with OK, but not who I'd call a friend",
Someone_I_wouldn "Someone I wouldn't have much in common with, but I wouldn't actually dislike",
Someone_I_d_have "Someone I'd have nothing in common with and wouldn't really like",
None_of_these "None of these"
};

Q12 "Again, imagining __brand2__ & __brand3__ came to life as brands, which of the following do you think would best
describe how you would feel about it?"
loop
{
use ComparisonBrands sublist ""
} fields -
(
GV1 "GV1"
categorical [..1]
{
One_of_my_closes "One of my closest friends",
Quite_a_good_fri "Quite a good friend, who I'd have some things in common with",
Someone_I_d_get_ "Someone I'd get along with OK but not who I'd call a friend",
Offers_the_lates "Offers the latest colors",
Someone_I_d_have "Someone I'd have nothing in common with and wouldn't really like",
None_of_these "None of these"
};

) column expand grid;

Q13 "Which of these statements applies to you about __brand1__?"
categorical [..1]
{
I_always_buy_Bra "I always buy __brand1__",
I_Brand_1_most_o "I buy __brand1__ most often and occasionally buy other brands",
I_sometimes_buy_ "I sometimes buy __brand1__ as well as other brands",
I_occasionally_b "I occasionally buy __brand1__ but usually buy other brands",
I_never_buy_Bran "I never buy __brand1__"
};

Q14 "Which of these statements applies to you about..."
loop
{
use ComparisonBrands sublist ""
} fields -
(
GV1 "GV1"
categorical [..1]
{
I_always_buy_thi "I always buy this brand",
I_buy_this_brand "I buy this brand most often and occasionally buy other brands",
I_sometimes_buy_ "I sometimes buy this brand as well as other brands",
I_occasionally_b "I occasionally buy this brand but usually buy other brands",
I_never_buy_this "I never buy this brand"
};

) column expand grid;

Q15a "Which, if any, of these brands have you seen advertised on TV recently?"
categorical
{
use MainBrand sublist "",
use ComparisonBrands sublist ""
};

Q15b "Can you please describe the last TV advertisement you saw for __brand1__?"
text;

Q15c "What impression did it give you about __brand1__?"
text;

Q15d "Do you remember this advertisement having slogan?"
categorical [..1]
{
Yes "Yes",
No "No"
};

Q15e "What was the slogan?"
text;

Q16a "Which of these impressions, if any, did this advertisement give about __brand1__?"
categorical
{
Brand_1_understa "__brand1__ understand me",
Brand_1_offers_q "__brand1__ offers quality products",
Brand_1_is_for_p "__brand1__ is for people like me",
None_of_these "None of these" exclusive
};

Q16b "Which of these phrases do you think describes this advertisement?"
categorical
{
It_grabbed_my_at "It grabbed my attention",
I_found_it_diffi "I found it difficult to follow",
It_made_me_feel_ "It made me feel good",
It_could_have_be "It could have been for any brand",
It_s_different_f "It's different from other ads",
It_told_me_somet "It told me something new about this brand",
It_was_humorous "It was humorous",
It_was_enjoyable "It was enjoyable to watch",
It_was_irritatin "It was irritating",
It_was_boring "It was boring",
None_of_these "None of these" exclusive
};

Q16c "How does this advertisement affect what you feel about __brand1__?"
categorical [..1]
{
I_am_much_more_l "I am much more likely to consider buying it in future",
I_am_little_more "I am little more likely to consider buying it in future",
I_m_no_more_like "I'm no more likely to consider buying it in the future",
I_would_buy_the_ "I would buy the brand anyway"
};

ThankU "Thank you for taking the time to complete this survey."
info;

Page -
page(
Q1,
Q1a,
Q1b,
Q1c
);
Page1 -
page(
Q2,
Q3,
Q4,
Q5
);
Page2 -
page(
Q6,
Q7,
Q8
);
End Metadata
See also
UNICOM Intelligence Author questionnaire wizard examples