You need to sign in to do that
Don't have an account?

Problems displaying radio buttons in VF page
Hi,
I am trying to display radio buttons within a pageBlockSection along with other fields and am having a few basic display problems:
1. The label does not display for the set of 3 radio buttons
3. The tooltip does not display for each radio button (Title attribute)
2. The radio buttons are aligned far left - I want them to display in the first colum of the pageBlockSection
VFcode excerpt
Any ideas?
I am trying to display radio buttons within a pageBlockSection along with other fields and am having a few basic display problems:
1. The label does not display for the set of 3 radio buttons
3. The tooltip does not display for each radio button (Title attribute)
2. The radio buttons are aligned far left - I want them to display in the first colum of the pageBlockSection
VFcode excerpt
apex:pageBlockSection id="newItemDetails" collapsible="false" title="Add New Item" columns="3"> <apex:actionRegion > <apex:pageBlockSectionItem > <apex:selectRadio id="itemTypeOptions" label="Type" value="{!selectedItemType}"> <apex:actionSupport event="onchange" rerender="newItemDetails" /> <apex:selectOption itemValue="Action" itemLabel="Action" title="This is an action" /> <apex:selectOption itemValue="Decision" itemLabel="Decision" title="This is a Decsion" /> <apex:selectOption itemValue="Note" itemLabel="Note" title="This is a Note" /> </apex:selectRadio> </apex:pageBlockSectionItem> </apex:actionRegion> <apex:pageBlockSectionItem /> <apex:pageBlockSectionItem /> </apex:pageBlockSection>
Any ideas?
I actually wanted the radio buttons to display in the first column of the pageBlockSection. I have achieved this by adding an outputLabel, which also solves the problem of the label. I have also decided that the title on the selectRadio should suffice as an overall tooltip for the set of radio buttons.
All Answers
Label was not showing because of pagebloacksection
To show radiobutton in first column i have added property layout="PageDirection"
Please select as best answer if answer helped you,
I actually wanted the radio buttons to display in the first column of the pageBlockSection. I have achieved this by adding an outputLabel, which also solves the problem of the label. I have also decided that the title on the selectRadio should suffice as an overall tooltip for the set of radio buttons.
Not a problem please let mek now, if i any information required.