You need to sign in to do that
Don't have an account?
SF Operator
Can't get value of selectList.
It always stay on Null.
this is my code:
Controller:
public String selectedReason {get; set;}
VF:
<apex:actionSupport event="onchange" rerender="OptionReason"/>
<apex:outputLabel value="{!$ObjectType.Case.fields.Reason.Label}"/>
<apex:selectList id="OptionReason" value="{!selectedReason}" multiselect="false" size="1">
<apex:selectOptions value="{!reasonOptions}"/>
</apex:selectList>
RituSharma
Share your apex code as well where you are trying to access the value of selectedReason.