Prompt for users while logging in for the first time

Hi there,

I want to throw a prompt while the users log in for the first time in a day, stating that they need to checkin for the day… How do I do that? Also, need to generate another prompt at maybe 6PM, stating that they need to checkout… Is there a way to achieve this?

Thanks in advance!

Hey you can use Realtime (socket.io)
-you can add a checkbox in user logged in for the day
-Also add a function which will be called after login which will use frappe.publish realtime with condition like wheather user has checked logged in for the day field
After publishing give a close button on popup on close check the logged in for the day
-And also add a scheduler function which will uncheck all users login for the day at midnight so that the popup condition must work next dat
-For 6 evening you can use a simple scheduler function which will again call frappe publish realtime without any conditions

Hi @Pradeep11,

Please check the post.

I hope this helps.

Thank You!