In VF page I have a lookup and a amount field. I need to enable/disable amount field based on lookup record type.

I tried below code:

<apex:outputPanel rendered="{!field.FieldPath == 'ABC__c'}">           
<apex:inputField styleClass="slds-input" value="{!objExpItem[field.FieldPath]}" id="rateId">
<apex:actionSupport action="{!getRType}" event="onchange" reRender="idLineItem" onComplete="removeMsg();" status="processImg">
    <apex:param name="abcId" value="{!objExpItem[field.FieldPath]}"/>

Event is not fireing at all. I tried using JQery, but inputField Id is also no reflecting to get value by Id.

Thank you! for any valuable inputs.

  • Which block of the code your rendering inside "idLineItem" – NITHESH K Sep 11 '17 at 7:27
  • It is a parent div of outputpanel. – SFDC Mafia - VIC Sep 11 '17 at 7:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.