Navigation buttons
The interview scripting program normally displays Previous, Next, and Stop buttons on interview pages.Previous is not displayed on the first page and Next is not displayed on the last page as they are inappropriate in these contexts. You can also choose to display First and Last buttons, to take respondents directly to the first question or the first unanswered interview question, and a Goto button for selecting a page from a list of possible pages.
Syntax
In the routing section, type:
IOM.Navigations.Add(NavigationTypes.<type>)
Parameter
<type>
The type of navigation button you want to display: one of nvPrev, nvNext, nvFirst, nvLast, nvStop, or nvGoto.
Example
IOM.Navigations.Add(NavigationTypes.nvFirst)
IOM.Navigations.Add(NavigationTypes.nvLast)
IOM.Navigations.Add(NavigationTypes.nvGoto)
This example adds the First, Last, and Goto navigation buttons to the set of navigation items for the interview so that they are available for all pages from the current point onwards.
Temporarily hiding buttons
You can hide a button for certain pages and then reinstate it, and you can remove buttons from the collection so that they are no longer available at all. To hide buttons temporarily, set the button’s Hidden property to True:
IOM.Navigations[NavigationTypes.nvStop].Label.Style.Hidden = True
To reinstate the button, set
Hidden to
False. For more information, see
Styles for navigation buttons.
What to display in the Goto list
The selection list for Goto normally shows question names, but if you have used short or cryptic question names you might prefer to display question texts instead. To do this, place either of the following statements in the routing section of the script:
IOM.SavePoints.UseQuestionLabels = True IOM.Navigations[NavigationTypes.nvGoto].Targets.UseQuestionLabels = True
See also