You need to sign in to do that
Don't have an account?
Mhlangano Khumalo
How to add multiple lines withing a single label <apex:selectOption itemLabel=" "> in Visualforce
I want the radio buttons to look like the image below. below is my code.
Currently they look like this
below is my code, please help.
Currently they look like this
below is my code, please help.
<apex:selectRadio value="{!Object__c.Field__c}" layout="pageDirection" > <apex:selectOption itemLabel="USA <br/> New york <br/> Chicago" itemValue="USA" itemEscaped="false" /> <apex:selectOption itemLabel="Japan <br/> Osaka <br/> Tokyo" itemValue="Japan" itemEscaped="false" /> </apex:selectRadio>
<apex:selectList id="chooseColor" value="{!string}" size="1">
<apex:selectOption itemValue="red" itemLabel="Red"/>
<apex:selectOption itemValue="white" itemLabel="White"/>
<apex:selectOption itemValue="blue" itemLabel="Blue"/>
</apex:selectList>
@Amit Chaudhary 8 , the options look like the above snapshot if they are a list. They have to be radio buttons.
<apex:selectOption itemValue="USA" itemLabel="USA"/>
<apex:selectOption itemValue="New york" itemLabel="New york"/>
<apex:selectOption itemValue="blue" itemLabel="Chicago"/>
</apex:selectList>
<apex:selectList id="chooseColor" value="{!string}" size="1">
<apex:selectOption itemValue="Japan" itemLabel="Japan"/>
<apex:selectOption itemValue="Osaka" itemLabel="Osaka"/>
<apex:selectOption itemValue="Tokyo" itemLabel="Tokyo"/>
</apex:selectList>
Please try above two picklist