Index: openacs-4/packages/acs-templating/www/doc/guide/wizards.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/guide/wizards.html,v diff -u -r1.3 -r1.4 --- openacs-4/packages/acs-templating/www/doc/guide/wizards.html 30 Sep 2003 12:04:22 -0000 1.3 +++ openacs-4/packages/acs-templating/www/doc/guide/wizards.html 7 Aug 2017 23:48:03 -0000 1.4 @@ -4,7 +4,7 @@

Integrating Forms into a Wizard

- Templating System : User Guide + Templating System : User Guide

This document outlines the steps necessary to build a dynamic form @@ -14,8 +14,8 @@

Create a wizard

-

Use the wizard create command to initialize a wizard, declaring -any wizard state variables in the -params option:

+

Use the wizard create command to initialize a wizard, declaring +any wizard state variables in the -params option:

wizard create make_sandwich -params { sandwich_id }
@@ -24,15 +24,15 @@

Add steps

-

Once the wizard is created, use the wizard create command to +

Once the wizard is created, use the wizard create command to add steps to it:

wizard add make_sandwich -label "Add the lettuce" -url "add-lettuce"

In auto-generated wizards, the wizard steps appear in the order they were created. See the wizard API for -optional parameters to this command. Alternatively, wizard steps can be created in the wizard create -statement with the -steps option:

+optional parameters to this command. Alternatively, wizard steps can be created in the wizard create +statement with the -steps option:

wizard create make_sandwich -action "eat-sandwich.acs?sandwich_id=$sandwich_id" -params { 
   sandwich_id 
@@ -46,9 +46,9 @@
 

Setting wizard state variables

Most likely, a wizard will store one or more state variables using the --params option in the wizard create statement. At any point +-params option in the wizard create statement. At any point in the wizard process, a state variable's value can be updated using the -wizard set_param command.

+wizard set_param command.

# check to see if a sandwich_id has been passed in by the wizard
 request set_param sandwich_id -datatype integer -optional
@@ -88,7 +88,7 @@
   

In the .adp file:

<formtemplate id=@form_name@ style=wizard>
-
  • Advancing the wizard with the wizard forward command. +
  • Advancing the wizard with the wizard forward command. The page the wizard forwards to depends on which wizard submit button was pressed (next, repeat, previous, finish):
    if { [wizard exists] } {
    @@ -106,7 +106,7 @@
     
     
     
    -templating@arsdigita.com +