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

Need to callback event Id and redirect page

I have an html scontrol (code below) that automatically creates and saves an event from an opportunity.  I need to then get the event id and associate it with a visualforce page so that the user fills out some custom fields to complete the event.


Can someone please help me on modifying the scontrol so that I can get the Event Id and redirect the user to the visualforce page ('/apex/eventdetails?id= '). I've been reading the discussion threads but I'm really lost and would appreciate any help.


Thanks so much 


"/00U/e?evt3_lkid={!Opportunity.Id}&RecordType=012300000000qm6" +
"&evt3={!Opportunity.Name}" +
"&evt10=Seminar" +
"&00N80000004SCGU=Note populated by scontrol"+
"&cancelURL=%2F{!Opportunity.Id}" +
"&saveURL=%2F{!Opportunity.Id}" +