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

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" />


except for Not dedication value for remaining  value an inputtext should be can I do it


You might do it in at least few ways. Two most common would be:


- use javascript&colon; 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;