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

0

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

  • Status__c has already default value "Open" .As it is dependent field on stage, It is not working. PFA for screenshots – Diljaan Shaik Aug 3 '17 at 12:34
  • You can set default values for controlling fields but not for dependent picklists. Reference – NITHESH K Aug 3 '17 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 '17 at 4:19

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.