• venkatasubbareddy aduri
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
I have visusalforce button, on click of it navigation should go back to home tab. i.e. /home/home.jsp. I tried this with javascript and pagereference method. With page reference method nothing is happening, but with js it saying "URL no longer exists."  Below is the js i used,
var returnURL;
		window.onload =  function() {
			returnURL = gup('retURL');
		};    
		function redirectBack() {
			window.location.href = '/' + returnURL;
		}
Pagerefernece i used ,
pageRef = new PageReference('/home/home.jsp');
return pageRef;
Any help is appreciated. Thanks in advance.

Hi,

 

I'm redirecting to new visualforce page in my class.

created URL look like.

https://xxx.visual.force.com/apex/NewPage?TestValue=value1&retURL=a0HS000000450UD

 

I'm trying to get TestValue into my Visualforce Page...

code of Page is here..

 

<apex:page standardController="XXX__c" extensions="EEE_Test">
    <apex:form >
        <apex:pageBlock >
        <apex:pageBlockSection columns="1">
             <apex:inputField value="{!CurrentPage.parameters.TestValue}"/>
    </apex:pageBlockSection>
        </apex:pageBlock>  
    </apex:form>
    </apex:page>

 

I'm getting "Save error: Field parameters does not exist. Check spelling."  during saving this page.

 

Please suggest how to get value from the URL in page InputField?