You need to sign in to do that
Don't have an account?
vinod Sanubala
VisualForce script not working, when trying to hide field based on picklist on customobject
I have picklist field called "Novated_opportunity__c", when 'yes' is selected, need to hide "Outline_of_the_Novated_opportunity__c"
I am using below script, no error's however no result.
<apex:page standardController = "Pricing_Request__c" showHeader="true" >
<apex:form>
<apex:outputPanel id="t1">
<apex:pageBlock>
<apex:pageBlockSection title="Novated leases">
<apex:inputField value="{!Pricing_Request__c.Novated_opportunity__c}" >
<apex:actionSupport event="onchange" rerender="t1" />
</apex:inputField>
</apex:pageBlockSection>
<apex:pageBlockSection title="Novated leases">
<apex:inputField value="{!Pricing_Request__c.Outline_of_the_Novated_opportunity__c}" rendered="{!IF( Pricing_Request__c.Novated_opportunity__c == 'Yes', true, false )}" >
<apex:actionSupport event="onchange" rerender="t1" />
</apex:inputField>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:outputPanel>
</apex:form>
</apex:page>
Thanks,
Vinod
I am using below script, no error's however no result.
<apex:page standardController = "Pricing_Request__c" showHeader="true" >
<apex:form>
<apex:outputPanel id="t1">
<apex:pageBlock>
<apex:pageBlockSection title="Novated leases">
<apex:inputField value="{!Pricing_Request__c.Novated_opportunity__c}" >
<apex:actionSupport event="onchange" rerender="t1" />
</apex:inputField>
</apex:pageBlockSection>
<apex:pageBlockSection title="Novated leases">
<apex:inputField value="{!Pricing_Request__c.Outline_of_the_Novated_opportunity__c}" rendered="{!IF( Pricing_Request__c.Novated_opportunity__c == 'Yes', true, false )}" >
<apex:actionSupport event="onchange" rerender="t1" />
</apex:inputField>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:outputPanel>
</apex:form>
</apex:page>
Thanks,
Vinod
<apex:page standardController = "Pricing_Request__c" >
<apex:form>
<apex:outputPanel id="t1">
<apex:pageBlock>
<apex:pageBlockSection>
<apex:inputField value="{!Pricing_Request__c.Novated_opportunity__c}" >
<apex:actionSupport event="onchange" rerender="t1" />
</apex:inputField>
<apex:inputField value="{!Pricing_Request__c.Outline_of_the_Novated_opportunity__c}" rendered="{!IF( Pricing_Request__c.Novated_opportunity__c == 'Yes', true, false )}" />
</apex:pageBlockSection>
</apex:pageBlock>
</apex:outputPanel>
</apex:form>
</apex:page>
Try something like below, regards
After