Log in
Log in with USB
Inloggen met vingerafdruk wordt binnenkort mogelijk.
Last change: November 11, 2019
Current version: 1.4.1
The multiStep module facitates the checks and datastorage for activities in a website that span a multiple steps.
webanizr.collect('multiStep', parameters, callack); webanizr.send('multiStep', data, parameters, callack);
The multiStep module accepts the following parameters:
The id assigned to the multistep. The id should only contain letters and numbers. The id is used to target the multistep in following actions.
The configuration of the entire proces. It consists of an array containing all possible steps. Each step contains the following information:
A list of the conditions that have to be met to activate this step. The conditions can have the following forms:
Actions that should be performed. The actions from actions__init are excecuted as soon as the step is matched. The actions from actions__finish are excecuted once the step is marked as finished.
webanizrvar name__var value: set a value in webanizr to the given value
addtopath path: add the given string to the path
storedata: store the given in the multiStep
loaddataglobal: load the data from the multiStep and set them as web anizr values
topage url: navigate to the given url
onapisuccess url method: call the api and store the returned data in the multiStep
inform message: show the message using inform
ensureurl url: navigate to the given url if that is not the current url
The callback is called after the step is matched and the initial steps are performed.
The data to be used by the actions.
The id of the multiStep. This must be a multiStep that is created with the collect method.
The action that sphould be performed. The following options are supported:
init: initialize the multistep (set the path to /)
finishstep: finish the active step
storedata: store the data in this mulitStep
setpath: set the path to the value from path__multistep in parameters
back: go one step back in the path. Skip steps that start with .
reset: reset the multistep (clear data and perform the init action)
setdatasection: creates a new datastore with this name. The data is only accassible on other pages if this datasecion is set again.
The path to replace the current path.
https://cdn.cpmodules.webanizr.com/demo/multistep/index.html