How to check actual time of interaction of user with form while submitting a record in session
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2024 10:09 PM
Hi Team,
I want to calculate the actual time partner is spending while filling the form and submitting the record on service portal. I want to exclude the time if partner spending on other activity ex. having tea during submitting record.
Any help will be appriciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 03:03 AM
Can anyone reply here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 02:04 AM
Hello @Priya3696 ,
I feel this requirement is very silly, that's my opinion. However, I can help you with the design.
Please find below things to write your javascript code :
- Record the timestamp when a partner opens the form.
- Use JavaScript events to detect partner activity such as keystrokes, mouse movements, scrolling etc. Start a timer that resets on each of these events.
- If no activity is detected for a given period (say 5 minutes), assume that the partner is inactive and stop the timer.
- When activity resumes, start the timer again.
- Record the timestamp when they submit the form and subtract any idle time from the total elapsed time.
Hope this helps.
Regards,
Amarjeet Pal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 01:10 AM
@Amarjeet Pal , I am trying to implement below code in widget client script but its not working,