I have 2 visual force page that I need to pass value from each other. First visual force page is for opportunity edit page. In this page I have a picklist field called Type . Value of this field are One, Two, Three.
There is another field called car and its type is lookup on the Opportunity edit visual fource page. When someone clicks on this lookup I am redirecting them to visualforce page called Carlookup . On this Carlookup visualforce page I want the value of Type from previous page which has been selected by user.
Let me clarify few things here .
In my org I use openPopup()
function and pass paramenters into that like baseURL,Width,Heigh
where Variable baseurl is what I have created for different fileters in that lookup page.
Here is the code for Baseurl
var BaseURL="/apex/Looup?txt=" + txt;
if(Cond.)
{baseurl = baseurl + "&txt2=" document.getElementbyId(page:form:pbs:carvalue).value;
i have tried adding another condition for type
if(opp.type != null) baseurl = baseurl+"&type=" + document.getElementbyId(page:form:pbs:Type).value; }
but this does not go inside if(opp.type != null) even if it is not null. I have debugged that by looking at the gerated url and it does not have no parameter called type.
Anyone please can help me with this? Any suggestion is greatly appreciated.