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
RVARVA 

Update a date/time field from a button and display a Visualforce Page

Currently, when I click on a custom button, a Visualforce Page is displayed via command

/apex/ApexPagename?id={!Contact.Id}

I want to add a command to update a date/time field when I click on this button, just before displaying the Visual Apex Page.

Does anyone know how to do that ?

Thanks a lot

kiranmutturukiranmutturu

i think u have a controller to ApexPagename page... so in that constructor update the date field... if not use ajax script to update the field in page level itself..