How to record whether or not a user has completed a particular section of the intervention (e.g. a questionnaire)

From Lifeguide Wiki
Revision as of 10:49, 25 March 2014 by Judy (talk | contribs)
Jump to navigation Jump to search

savevalue can be used to record when users complete a specific part of your intervention. For example, you may want to record whether users have completed the baseline questionnaire so you know if they can move on to the next part of the intervention.

To do this, type the following line in the logic when you want to save the questionnaire as 'complete' (this may be after the last page of the questionnaire or earlier if all of your questions are not mandatory). savevalue(username, "baseline_done", "yes")