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
vino2vijayvino2vijay 

How to display checkbox based on picklist values in Standard Page ?

Hi all,

 

In Standara page there one picklist, based on the selecting picklist values we need to be display checkbox ? It should be happen in standard page ? is the possible ?

if not please provide any other suggestion ?

 

 

Thanks,

Darshan FarswanDarshan Farswan

Checkbox field can only act as Controlling field. It cannot be dependent field. 

 

You can Control the editability of Picklist from a Checkbox, but the reverse is not true.

 

I doubt if this is possible on a Standard Page.

KamsR_DEVKamsR_DEV

Hi,

 

In standard page you cannot make a checkbox dependent to a picklist. Because only checkbox and picklist can be the controlling field in standard page.

 

But you can do this in a VF page using standard controller and overwrite it in the new button. So, you can make the checkbox to display based on the picklist values selected.

 

Example:
************

VF page to render the checkbox1__c or checkbox2__c based on the PicklistEG__C field values change in Account object,

 

<apex:page standardcontroller="Accounts">
<apex::form>

    <apex:inputfield value="{Account.picklistEG__c">
       </apex:actionsupport event="onchange" rerender="theBlock"/>
    </apex:inputfield>

    <apex:outputpanel id="theBlock">
          <apex:inputfield value="Account.checkbox1__c" rendered="{!Account.picklistEG__c == 'check1'}"/>
          <apex:inputfield value="Account.checkbox2__c" rendered="{!Account.picklistEG__c == 'check2'}"/>
     </apex:outputpanel>

</apex:form>
</apex:page>

 

 

Hope this will help you...!

 

 

 

Thanks,

Kamatchi Devi