function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ritikakhatri1.394602279912887E12ritikakhatri1.394602279912887E12 

How can I autopopulate start and end fields in overridden new event page and have some validation

I have a visualforce page with standard controller as Event. I want to autopopulate start and end fields and add a validation check to it
Sonam_SFDCSonam_SFDC
Please explain as to how you are accessing this visualforce page - as in the flow of action - is it through a custom button /URL 

if yes, you can pass the value of start and end date in the URL - sample code provided in the thread link : https://developer.salesforce.com/forums/ForumsMain?id=906F000000094yFIAQ