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

need a code for Submit Button controller
HI,
My requirement is to create an activity while Clicking on Submit Button can anyone please help me with code.
Thanks&Regards,
Abhinav.
My requirement is to create an activity while Clicking on Submit Button can anyone please help me with code.
Thanks&Regards,
Abhinav.
public pagereference save(){
task.WhatId = Object.id; task.WhoId = userinfo.getuserid(); task.Subject = 'Other'; task.priority= Object.Priority__c; task.status = 'Not Started'; task.description = 'New Work'; insert task;
return null;
}
Hope I answered your question. Hit best answer button if its helpful.
Regards,
Nirmal
https://www.salesforce.com/docs/developer/pages/Content/pages_controller_std_actions.htm
Hope I answered your question. Hit best answer button if its helpful.
Regards,
Nirmal
Visualforce page Controller code[Method]
Thanks,
Karanraj