Removing banners from questions and pages
To remove a banner from a page
IOM.Banners.Remove("<banner_name>")
To remove a banner from a question
<question_name>.Banners.Remove("<banner_name>")
Parameters
<banner_name>
The banner’s name.
<question_name>
The question’s name. If the question is part of a page group, the name must be consist of the page name and the question name.
Example
Suppose the metadata section is defined as follows:
Disclosure "We do not disclose your personal details to anyone
outside our company." info;
HowUseAnswers "The answers you give to the following questions
will be used for analysis purposes only." info;
FirstName "What is your first name?" text [1..20];
Job "What is your position in your company?" categorical [1..1]
{
IntScriptwriter" Interview scriptwriter",
SMScriptwriter "Sample management scriptwriter",
SysAdmin "System administrator",
PhoneSupervisor "Phone room supervisor",
ProjMan "Project manager",
Interviewer, Coder
};
Demographics page(FirstName, Job);
ContactAgain "Click the check box if you would be willing to take
part in a follow-up survey" boolean;
Name "What is your full name?" text [5..50];
EmailInfo "If you have more than one email address, please enter
the one that you want us to use when contacting you." info;
Email "And what is your email address?" text [5..99];
If the routing section contains the following statements:
IOM.IOM.Banners.Add("DisclosureBanner",Disclosure.Label)
IOM.Banners.Add("HowUseAnswersBanner",HowUseAnswers.Label)
Demographics.Ask()
IOM.Banners.Remove("DisclosureBanner")
IOM.Banners.Remove("HowUseAnswersBanner")
IOM.Navigations[NavigationTypes.nvStop].Label.Style.Hidden = True
ContactAgain.Ask()
If ContactAgain.Response.Value = True Then
Name.Ask()
IOM.Banners.Add("DisclosureBanner",Disclosure.Label)
Email.Banners.AddNew("EmailBanner",EmailInfo.Label)
Email.Ask()
IOM.Banners.Remove("DisclosureBanner")
Email.Banners.Remove("EmailBanner")
End If
the page for the ContactAgain question will contain no banners at all:
To see this page in the context of the full interview script, see
Adding banners to questions and pages.
See also