Professional > Interview scripting > Writing interview scripts > Displaying information on a page > Banners > Removing banners from questions and pages
 
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
Qname.Banners.Remove("Banner_name")
Parameters
Banner_name
The banner’s name.
Qname
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
Banners