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?

  • Can you please post the code which you've tried so far? – SE_User Jun 6 '17 at 8:02
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>
|improve this answer|||||

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.