Hi I have a lookup field which returns an opportunity if available, currently once i select an opportunity an actionsupport is triggered onchange, I then want to put that value from the lookup field into the controller using an apex:param however when i debug it in the controller its coming through as blank
Visualforce
<apex:inputField value="{!pb.CXT_Opportunity_Name__c}">
<apex:actionSupport event="onchange" action="{!checkIfSelectedContactHasPendingOpp}" rerender="testing">
<apex:param name="PendingOpportunityName" assignTo="{!PendingOpportunityName}" value="{!pb.CXT_Opportunity_Name__c}"/>
</apex:actionSupport>
</apex:inputField>
controller
public string PendingOpportunityName {get;set;}
public pagereference checkIfSelectedContactHasPendingOpp(){
system.debug(PendingOpportunityName);
return null;
}
the debug just returns empty, any help would be awesome, Thanks
CXT_Opportunity_Name__c
a Lookup?