Skip to main content The Trailblazer Community will be unavailable from 2/1/2025 to 2/2/2025. Please plan your activities accordingly.
error

We made a wrong turn. Try again.

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>
1 answer
0/9000