You need to sign in to do that
Don't have an account?
How to add callback function for lookup Field change?
I want rerender my page when one lookup field changed? I add a js function for the event onchange of the lookup field.
<apex:inputField id="patient" value="{!claim.Patient_Name__c}" onchange="patientNameChanged();" required="true" styleClass="requiredClass"></apex:inputField>
function patientNameChanged() { if(document.getElementById('{!$Component.formId.pageBlk.pgBlockSec1.patient}').value == '') { submit = false; } else { document.getElementById('patientId').value = document.getElementById('{!$Component.formId.pageBlk.pgBlockSec1.patient}' + '_lkid').value; setSubmit(); patientSelected();
} }
but the document.getElementById('{!$Component.formId.pageBlk.pgBlockSec1.patient}' + '_lkid').value is the value before the lookup function.
I want to get the value that after the lookup execution.
any sugesstion would be appreciated. thanks
try this
Controller :
VFP
You can use similarly in your page.