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
AsitAsit 

Redirect page to Calender on Clicking Command Button

Hello,

 

Please suggest how can I direct to Calender  It is redirecting inside my current popup visual force page. 

I need to CLOSE the current pop up VF page and redirect the page to CALENDAR from where the button was clicked.

here is my code.. Please suggest what should I do? Also is it ok if I am hardcoding the calendar url?

 

VF---

 

<apex:commandButton value="Submit" action="{!insertHCP}"  onclick="insertval();" styleClass="buttonStyle" />

 

Apex--

 

 

Public PageReference insertHCP(){

<--My other logic-->

PageReference reference=new PageReference('/00U/c?cType=1&md3=286&md0=2012');
reference.setRedirect(true);
return reference;

}