Skip to main content
Preyanka Ghosh 님이 #Visualforce에 질문했습니다
Hi All,

I am facing problem with onchange event of <apex:inputfield> that actually calls <apex:actionFunction>

The problem is I have a depenedent picklist. When I choose value in controlling picklist the dependent picklist will enabled and values will be rendered. When there is more than one value in the dependent picklist there is no problem with the onchange event but when there is only one value, as per dependent picklist behaviour, that value was selected by default at that time onchange event is not working. 

There is one solution to use javascript and add a dummy value like --select-- in the picklist but is there any other option, hence user do not have to select the dependent picklist value if there is only one value.
답변 6개
  1. 2017년 5월 4일 오전 7:38
    No that is not working. The method is invoked on onchange event of A and onchange of B, I have checked that using javascript alert. But it does not reset the value of C to --None--, instead it select the single value automatically.
0/9000