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
RajeevlsHydRajeevlsHyd 

Store Value on the VF page after redirection from another VF page

When I am redirecting from first VF to Second VF  , it is working fine, but when I am redirecting back(Second To First), it is not displying correct values.. how can I acheive this...

 

Best Answer chosen by Admin (Salesforce Developers) 
digamber.prasaddigamber.prasad

When you are redirecting back from second page to first page, please create the same URL as it was when you came to first page.

 

Say, when you were on page1 the url was https://<domainName>/apex/page1?id=<recordId>

when you go to second page say the url is https://<domainName>/apex/page2?oppId=<oppId>&id=<recordId>

When you go back to page1 from page2 create same url as above https://<domainName>/apex/page1?id=<recordId>.

 

Hopefully this will help you.

 

Happy to help you!

 

Regards,

Digamber Prasad

All Answers

digamber.prasaddigamber.prasad

When you are redirecting back from second page to first page, please create the same URL as it was when you came to first page.

 

Say, when you were on page1 the url was https://<domainName>/apex/page1?id=<recordId>

when you go to second page say the url is https://<domainName>/apex/page2?oppId=<oppId>&id=<recordId>

When you go back to page1 from page2 create same url as above https://<domainName>/apex/page1?id=<recordId>.

 

Hopefully this will help you.

 

Happy to help you!

 

Regards,

Digamber Prasad

This was selected as the best answer
RajeevlsHydRajeevlsHyd

Thanks , I was able to acheive this..