I have a picklist with values as yes and no. On my vf i need to display the same as radio buttons and while saving the values i need to save them as picklist values from th controller.
I have a picklist with values as yes and no. On my vf i need to display the same as radio buttons and while saving the values i need to save them as picklist values from th controller.
Best Answer
You can change the dropdown to radio buttons with JavaScript also. First hide the dropdown, then take the data out of the elements and create the
<input type="radio"/><label/><br/>
for each one. On click of the radio, you have to update the dropdown so that it will save the correct data.This solution is based on this stackoverflow link.