0

On Opprotunity object there is Stage(standard) and Status__c(custom) picklist fields. Status(dependent) is dependent on Stage(controlling) field. I want to make Open defalut value for Status__c in one Visualforce page.

 <apex:inputField value="{!Opportunity.StageName}"/>
 <apex:inputField value="{!Opportunity.Status__c}" />  

How to do that?

enter image description here enter image description here enter image description here

1 Answer 1

0

You can set default values for controlling fields but not for dependent picklists. Reference

3
  • Status__c has already default value "Open" .As it is dependent field on stage, It is not working. PFA for screenshots
    – User 7864
    Aug 3, 2017 at 12:34
  • You can set default values for controlling fields but not for dependent picklists. Reference
    – NITHESH K
    Aug 3, 2017 at 13:06
  • Welcome. You can make it required field or write a workflow if default value is not select to make sure at least value selected for a field.
    – NITHESH K
    Aug 4, 2017 at 4:19

You must log in to answer this question.

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