• Kbishts
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

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

 

  

  • May 10, 2012
  • Like
  • 0