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
TechnossusTechnossus 

How to open a VF page on Click of button

Hi guys,

 

I have one Custom object  XYZ, and I want when I will insert any record into that object  after save the records, One VF page should be open and in that VF page all the records should be displayed as PDF.

 

regrads

Raman

Nickname_BravoNickname_Bravo
you can either create a trigger which will send the users to a VF page after insert
OR
Just create a new save button that will override the original save button which will send the user to that custom VF page after every save.
liron169liron169
Hello,

1.Create the VF page that want to open.
2.Override the new button for object XYZ.
Construct the URL to have parameter saveURL.
The URL should be:

<originalURL> + ?saveURL=apex/myVFPage