You need to sign in to do that
Don't have an account?
bcg
Page render on basis of picklist values
Hello,
anyone plz help me.
I want to render the pageblocksection, when i select values from picklist fromanother pageblocksection on same page then secong page block section rendered and shows the values accroding to selected values.
How can i solve this.. anyone knows plz help me......
you can use <apex:actionSupport> componenet after writing the taking the picklist value.
In the actionSupport tag you have to mention the attributes as:
<apex:actionSupport event="onchange" rerender="pageblocksectionid">
If you want to perform any action after selecting the picklist value you can use action attribute also.
Hope this will work for your requirement....
Thanks Dear,
Will you plz give me any example code of my problem. actually am new to salesforce and i don't know how to implement it.
i am sending some example code on picklist. if you change the first picklist value then only the second picklist values shown based on the first picklst values.
here is the some code:
Apex class:
And the Visualforce page is like:
you can verify the code with your code. And this code work based on the values in the object defined previously.
Hoping that this code will helps you....................
Thanks for this dear, But my problem is not like that. I have two picklist i.e. Admission Criteria & Admission Process and in both the picklists i have two values. i want when i select one value from first picklist and second value from another picklist then according to selected values it display the PageBlockSection and values of pageblocksection.
Am sending you code please check this if you understand my problem.
Controller:
Apex Page: