You need to sign in to do that
Don't have an account?
Ram_SF14
I am trying to redirect to a different page but it is actually showing a completely BLANK page
Hi All
I am trying to redirect to a different page when clicked on a button in VF page, but it is actually showing a completely BLANK page. Can anyone please HELP ..!
Thanks
I am trying to redirect to a different page when clicked on a button in VF page, but it is actually showing a completely BLANK page. Can anyone please HELP ..!
Thanks
Try in this way
Controller Page
If you don't mind could you please explain
pr.getParameters().put('id', '11123434'); this bit in detail ?
Thanks
pr.getParameters().put('id', '11123434');
this is param value we can pass vf page to controller
pr will return these value when we used in vf page we have to use Id in controller
public string id {get;set;}
then pass it from vf page
<apex:param name="id" value="{!id}"/>
because right now we are not passing parameter from vf to controller.So we can set pr to reteun null
Ram
i gave you example from this url
http://skmsfdcwiki.blogspot.in/2017/06/page-reference-setredirect-salesforce.html
?
varun@astreait.com
Controller
public class TestCont {
public PageReference press() {
return page.a;
}
}
Default VF Page
<apex:page controller="TestCont" >
<apex:form>
<apex:commandButton value="Press" action="{!press}" />
</apex:form>
</apex:page>
VF Page going to show on Button Press
<apex:page >
<script>
function f() {
alert("Text");
}
</script>
<apex:form>
Hello
<apex:inputCheckbox onclick="f()" />
</apex:form>
</apex:page>
Please, Mark it best answer if you find it helpful.
Thanks
Thanks in advance