You need to sign in to do that
Don't have an account?
Dilip_V
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 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>
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