0

How to hide a custom pick list field only on record creation on 'Opportunity' using Visualforce, and the same pick list field should be visible/editable on edit/view of the same record?

1
  • Can you please post the code which you've tried so far?
    – SE_User
    Jun 6, 2017 at 8:02

1 Answer 1

1

I answered a similar Question in this SFSE link. The basic idea is to parse the URL parameters to know about the VF page mode. Once you get to know the mode, you can conditionally render the picklist based on that.

VF Page

<apex:page standardController="Account" extensions="CheckState" >
    <apex:form>
        <apex:inputField value="{!Account.Industry}" rendered="{!IF(vfMode != 'New','true','false')}"/>
    </apex:form>
</apex:page>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .