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
KavyaKavya 

Enable fields based on Picklist value

Hi ,

 

I have requirement which is as follows....

 

A form which has 2 picklists and many more fields like text fields , lookups etc , picklist B values will be populated based on Picklist A values (a query runs in the controller to populate picklist B values).. now , as per the requirement I want all the fields to be disabled until a values in Picklist A has been selected...

 

<apex:actionFunction name="update" action="{!populateItems}" rerender="Panel">
    <apex:param name="Status" value="" />
       </apex:actionFunction>
      <apex:outputLabel for="pick1">CMR ID:</apex:outputLabel>
   <apex:selectList value="{!status}" multiselect="false" size="1" id="pick1" onchange="update(this.value)">
   <apex:selectOptions value="{!items}" />
   </apex:selectList>

 

Since am already using onchange to populate the picklist , how can I achieve the above mentioned requirement.

 

Please help me.

 

Thanks

Kavya

 

  

kiranmutturukiranmutturu

picklists are standard or custom picklists..i.e you bind that field with input field or created a select list?

KavyaKavya

I am using custom Picklist.. i.e the <apex:selectOption>

KbishtsKbishts

Did you achive this? how?