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
Dilip_VDilip_V 

Apex Action support is not working.



I developed a page for capturing candidate Inf.If user selects PG( in the picklist ) then both Gradation and PG inf should appear on the page,If user selcts Graduation then Only Graduation inf should appear on the page.But unfortunately somthin went wong.

When I select the value in the picklist the page is not responding.
<apex:page standardController="Candidate__c">
<apex:sectionHeader title="Candidate" subtitle="{!Candidate__c.name}"/>
<apex:form >
<apex:pageBlock title="Candidate__C Edit" mode="edit">

<apex:pageBlockButtons location="bottom">
<apex:commandButton value="Save" action="{!save}"/>
<apex:commandButton value="Save & New" action="{!save}" />
<apex:commandButton value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons>


<apex:pageBlockSection title="Information" columns="2">
<apex:inputField value="{!Candidate__c.Gender__c}" required="false"/>
<apex:inputField value="{!Candidate__c.Name}" required="true"/>
<apex:inputField value="{!Candidate__c.EMail__c}" required="false"/>
<apex:inputField value="{!Candidate__c.Phone__c}" required="false"/>

<apex:PageBlockSectionItem >
 <apex:outputLabel value="Highest Qualification   "/>
<apex:actionRegion >
                          
                          <apex:inputField value="{!Candidate__c.HighestQualification__c}">
                          <apex:actionSupport event="onchange" reRender="ajaxrequest" status="status"/>
                          </apex:inputField>
</apex:actionRegion>
</apex:PageBlockSectionItem>
</apex:pageblocksection>
                         
<apex:outputPanel id="ajaxrequest">
 <apex:pageBlockSection rendered="{!Candidate__c.HighestQualification__c=='B.Tech'}" >
                      <apex:inputField value="{!Candidate__c.BBranch__c}" required="false"/>
                      <apex:inputField value="{!Candidate__c.BCollege__c}" required="false"/>
  </apex:pageBlockSection>
 <apex:pageBlockSection rendered="{!Candidate__c.HighestQualification__c=='M.Tech'}" >
 
         <apex:inputField value="{!Candidate__c.BBranch__c}" required="false"/>
         <apex:inputField value="{!Candidate__c.BCollege__c}" required="false"/>
        <apex:inputField value="{!Candidate__c.MBranch__c}" required="false"/>
        <apex:inputField value="{!Candidate__c.M_Tech_College__c}" required="false"/>
</apex:pageBlockSection>
</apex:outputPanel> 
</apex:pageBlock>
</apex:form>
//https://developer.salesforce.com/forums/?id=906F000000096zcIAA
</apex:page>
salesforce mesalesforce me
<apex:page controller="prodSearchController">
<br>
<apex:outputPanel id="selectPub">
<br>
<apex:pageBlock rendered="{!renderSelectPub}"  title="Please select a publication" id="selectPub2">
<br>
<apex:form >
<br>
<apex:selectRadio layout="pageDirection"  value="{!pub}"><br>
<apex:selectOptions value="{!DistinctPubs}"/><br>
<apex:actionSupport event="onchange" action="{!selectPub}" rerender="selectPub,selectRateCard"/><br>
</apex:selectRadio>
<p/>
<br>
</apex:form><br>
</apex:pageBlock>
<br>  
</apex:outputPanel><br>
<apex:outputPanel id="selectRateCard"><br>
<apex:pageBlock rendered="{!renderSelectCard}" title="Please select a rate card" id="selectRateCard2"><br>
<apex:outputPanel ><br>
<p>You have selected:</p><br>
<apex:outputText value="{!pub}"/><br>
</apex:outputPanel><br>
</apex:pageBlock><br>
</apex:outputPanel><br>
</apex:page>
William TranWilliam Tran
Be sure B.Tech and M.Tech are correct values.  Are there spaces there? is there a period? is the case exact? etc.

To confirm, you can use {!Candidate__c.HighestQualification__c} in the <apex:outputPanel id="ajaxrequest"> area to see the values of what you select, chances are it's not what you expect.  Is this a multiselect picklist?  If so you may get multiple values.

As a common practice, if your question is answered, please choose 1 best answer. 
But you can give every answer a thumb up if that answer is helpful to you. 

Thanks