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
Srini NandhiSrini Nandhi 

Depenedent Picklist with onchange --for Rendering another PageBlockSection

Hello All,

I have 2 PickList Fields. Type[aa,bb,cc] and Category(a,b,c,d)
Below is the Dependency.
aa-a
bb-a,b,c
cc-b,c,d

In VisualForce page i have used  <apex:inputField> for both fields.
for Category i have a Actionsupport to render the another Pageblocksections for each value in category different PBs

Here my Problem is

if i select Type='aa' automatically Category comes as 'a'(because it has only one dependent value). So for this Category 'a' related PageBlock section is not rendering.(only one dependent value not adding --None--)
for other categories its coming and  perfectly because --None-- is adding if we have more dependent values.

Can you please help me with this.

 
Arunkumar RArunkumar R
Hi Srini, 

I have tried your scenario in my org and it's working. I am not sure what you made mistake. Can you post your code to solve your problem.