We have 2 processes that our inside sales team needs to complete when working a new lead. Each of these processes is accessed via a custom button on the lead record that opens a VisualForce page. They then complete fields in the VisualForce page and "save" when complete.
I have created "started" and a "completed" date/time fields on the Lead record, and would like them to be updated based on the activities of the process. Simply put, when the rep clicks the button to start the process (opening the VisualForce page), I want to update the "started" field, and when the click save on the VisualForce page) I want it to populate the "completed" field. (Alternately, I could have a workflow to update completed based on the fields themselves being updated).
How would you go about doing this? I can't seem to get a workflow to kick off when the button is pushed, and I'm still new enough to the VF pages that I don't know if there is a piece of code for updating.