You need to sign in to do that
Don't have an account?

Event autopopulate Date/Time onClick
Hi, I hope you are well.
I would like to create something exactly the same as the standard calendar and event in SF.
Basically, whenever I click on a cell in my table it should auto-populate with the date/time.
As of now I can only make it work with a button but I would like to do it with a click.

I would like to create something exactly the same as the standard calendar and event in SF.
Basically, whenever I click on a cell in my table it should auto-populate with the date/time.
As of now I can only make it work with a button but I would like to do it with a click.
Please note that this is just a sample code. I suggest making changes as per your needs
If you find this information helpful, please mark this answer as Best. It may help others in the community
Thanks,
Anudeep
Greetings!
Have you tried to use the Calendar.js plugin to achieve the requirement.Please check the below thread for the sample code:
http://salesforce-priya.blogspot.com/2017/04/custom-calendar-on-visualforce-page.html
Kindly mark it as best answer if it helps so that it can help others in the future.
Warm Regards,
Shirisha Pathuri