How to save information about users and use it later in the intervention: Difference between revisions

From Lifeguide Wiki
Jump to navigation Jump to search
(Created page with "== <code> save </code> == The <code> save </code> key command allows you to save the responses that an end-user enters on a page. This can then be loaded using the <code> load...")
(No difference)

Revision as of 10:36, 10 May 2013

save

The save key command allows you to save the responses that an end-user enters on a page. This can then be loaded using the load key command onto another page to re-show it to your end-user. The save and load commands can be used across sessions and requires end-users to have registered a user account.

Example:

show page1

save page1 for username

Then, later on in the logic (either in the same session or a later session) the following logic would be used:

show page20

set default page20.interaction2 to load page1.interaction1 for username

So, in the first part of this logic page1 is saved for the end-user. Then when they get to page20 in the intervention the response that they entered on interaction1 on page1 will be reshown to them on interaction2 on page20.