You need to sign in to do that
Don't have an account?
neeedhelp
apex:selectoption rendering
<apex:selectlist value="{!dedicationval}" size="1">
<apex:selectoption itemlabel="Not Dedication" itemvalue="Not Dedication" />
<apex:selectoption itemlabel="in honor of" itemvalue="in honor of" />
<apex:selectoption itemlabel="on behalf of" itemvalue="on behalf of" />
<apex:selectoption itemlabel="in memory of" itemvalue="in memory of" />
</apex:selectlist>
except for Not dedication value for remaining value an inputtext should be displayed......how can I do it
You might do it in at least few ways. Two most common would be:
- use javascript: which will be triggered when value on a dropddown is changed; then from JS hide or display mentioned input;
- override the dedicationval variable setter and set some dedicated boolean variable which is used to define whether the input field is visible or not; add the rerender action for dropdown change to display / hide input field;