I'd like to display how long it takes a user to complete a form within the form. Can I use the double (now()) in a hidden value to capture a timestamp? If I do, what timestamp does it actually capture? the moment the form was opened? closed?
How to display how long it takes to complete a form in CommCare by displaying a now() function
commcare
Related Topic
- How to compute the time spent in a form
- Explanation of form status filtering on mobile devices
- CommCare – How to Get Timestamp for Exact Time a Question is Answered
- How to reference the user_id in a CommCare form
- If a location name (NOT id) is changed, will it update in the form data
- How to get user’s location ID for use in form display logic in CommCare
- Conditional Display in CommCare – How to Show Questions Based on Lookup Table Answers
- Display condition error in repeat group controlled by user-input question
Best Answer
In order to capture both the time that a form was started and ended, you can do the following:
This solution can be imperfect in a couple of ways:
A good way to get around both of these difficulties would be to add a dummy required last question to your form. It could be just a checkbox question with a single answer choice that says something like: