function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Soumya BeheraSoumya Behera 

how do i hide the visulaforce inputfield based on the one of the picklist value select without using controller ?

Hi All,
How do i hide the visulaforce inputfield based on the one of the picklist value select without using controller ?

Regards,
Soumya Ranjan
William TranWilliam Tran
User the rendered attribute
 
<apex:outputLabel value="Account Name"/><apex:outputPanel id="a041a000001jJ2n">
<apex:inputField value="{!Account.Name}" rendered="{!Account.Industry =='Banking'}"></apex:inputField></apex:outputPanel>

make sure on the picklist to have an actionsupport and do a rerender
 
<apex:inputField value=" {!Account.Industry}">
<apex:actionSupport event="onchange" rerender="a041a000001jJ2n"/>
</apex:inputField>

As a common practice, if your question is answered, please choose 1 best answer. 
But you can give every answer a thumb up if that answer is helpful to you. 

Thanks