Skip to main content
Kinetic Community

Page Elements

Page elements can be added to a service item by using the page function. The page function takes one string argument, the text label of the page element. Any section, text, or question element that is created within the code block passed to the page function will appear on that page.

Page Flags

The :contents, :review, and :confirmation flags are used to con figure the type of the page element to be created. One of these flags is required for all page elements.

The :previous_button flag adds a previous button to the page element.

The :clear_answers flags configures the page to clear the answers on the page when the previous button is used. The :clear_answers flag requires the :previous_button flag.

The :horizontal_buttons and :vertical_buttons flags configure the alignment of submit and previous buttons on the page. The :horizontal_buttons and :vertical_buttons flags require the :previous_button flag. Only one of these flags can be used for a page element.

Page Options

The :submit_button_value option configures the text that is displayed on the submit button of the page element.

The :previous_button_value option configures the text that is displayed on the previous button of the page element. The :previous_button_value option requires the :previous_button flag.

The :display_page option configures the display page (JSP) of this page element.

The :style_class option configures the style class of the page element.

Page Functions

The section function (Section Elements).

The text function (Dynamic Text Elements).

The image function (Image Elements)

The question function (Question Elements).

The event function (Events).

The style function (Styles).

The branching function (Page Branchings).

Page Element Creation

page "Contents Page",
  :contents,
  :previous_button,
  :horizontal_buttons,
  :submit_button_value => "Continue",
  :previous_button_value => "Back" do
  # Service Item contents go here. Contents include Sections, Text, and Questions
end

The page above is a contents page with a previous button. The submit button and previous button labels are Continue and Back respectively.

page "Review Page",
  :review do
  # Service Item contents go here. Contents include Sections, Text, and Questions
end

The page above is a review page.

page "Confirmation Page",
  :confirmation do
  # Service Item contents go here. Contents include Sections, Text, and Questions
end

The page above is a confirmation page.