You need to sign in to do that
Don't have an account?
sansha
Problem while rerendering PageBlockSection
I have two objects:
1 EU_ProductRequest__c
2 OMS_Vendor__c
EU_ProductRequest__c has a lookup field against OMS_Vendor__c. When a user selects a particular value for the OMS_Vendor__c field, all the fields in the section BloombergUUIDsSection should be visible. Below is a part of the code.
<apex:inputField value="{!EU_ProductRequest__c.OMS_Vendor__c}">
<apex:actionSupport event="onchange" rerender="BloombergUUIDsSection"/>
</apex:inputField>
<apex:actionSupport event="onchange" rerender="BloombergUUIDsSection"/>
</apex:inputField>
<apex:outputPanel id="BloombergUUIDsSection">
<apex:PageBlockSection title="Bloomberg UUIDs / First & Last Name (only required when OMS is Bloomberg)" rendered="{!EU_ProductRequest__c.OMS_Vendor__c='Bloomberg'}">
<apex:inputField value="{!EU_ProductRequest__c.UUID1_First_Last_Name__c}"/>
</apex:PageBlockSection>
</apex:outputPanel>
<apex:PageBlockSection title="Bloomberg UUIDs / First & Last Name (only required when OMS is Bloomberg)" rendered="{!EU_ProductRequest__c.OMS_Vendor__c='Bloomberg'}">
<apex:inputField value="{!EU_ProductRequest__c.UUID1_First_Last_Name__c}"/>
</apex:PageBlockSection>
</apex:outputPanel>
However when I choose the value Bloomberg for the field EU_ProductRequest__c.OMS_Vendor__c, the section BloombergUUIDsSection does not rerender.
Please suggest.
not sure how you would catch the fact that another element has changed the content of that field.
{!EU_ProductRequest__c.OMS_Vendor__r.name='Bloomberg'}
you will have to look up the relationship name instead of using the field OMS_Vendor__c which is the ID