How to record whether or not a user has completed a particular section of the intervention (e.g. a questionnaire): Difference between revisions
Jump to navigation
Jump to search
(Created page with "<code>savevalue</code> can be used to record a completed part of your intervention. For example, you may want to record whether users have completed the baseline questionnaire...") |
No edit summary |
||
Line 1: | Line 1: | ||
<code>savevalue</code> can be used to record a | <code>savevalue</code> 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 | 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). | ||
<code>savevalue(username, "baseline_done", "yes")</code> | <code>savevalue(username, "baseline_done", "yes")</code> |
Revision as of 10:49, 25 March 2014
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")