You need to sign in to do that
Don't have an account?
SFDC Forum 007
Radio Button VF Page issue
Hi,
Please help me out with my issue
1)I have 3 radio buttons in my vf page that i have created eg :1,2,3
2) On loading the vf page only one radio button only one radio button should be selected by default eg:3
Please do guide me to solve my issue
Thanks in Advance...
Here is the sample code which might helpful to you.
Regards,
Kamlesh Chauhan, (Founder & CTO, LogicRain Technologies)
kamlesh@logicrain.com || http://www.logicrain.com || LinkedIn
Answers/Suggestions are my own.
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
All Answers
Let us assume your code is something like below.
Set the "SelectedRadio" variable to "3" (Or any default value) in the consturctor of your VF Page's controller.
Regards,
Kamlesh Chauhan, (Founder & CTO, LogicRain Technologies)
kamlesh@logicrain.com || http://www.logicrain.com || LinkedIn
Answers/Suggestions are my own.
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
can u guide me hw to use the default radio button value in the constructor in controller, becz i tried it disbales all the three radio buttons in it.
Thanks in advance
Do you want to disable your radio button or do you want to display any one radio button as selected?
Regards,
Kamlesh
nopes not to disable it, want to make one radio button checked by default out of 3 radio buttons
do i need to write a java script toachieve this or can i achieve this via html radio buttons
Here is the sample code which might helpful to you.
Regards,
Kamlesh Chauhan, (Founder & CTO, LogicRain Technologies)
kamlesh@logicrain.com || http://www.logicrain.com || LinkedIn
Answers/Suggestions are my own.
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
Thanks a lot, It worked for me :)
Great. Thanks