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
BeekmanBeekman 

Javascript Radio Selection in Button

Hello all,

I have created many buttons with javascript alart with yes/no response to continue.  However, I cannot seem to get a radio typ selection to work.  I need to know if anyone got it to work and if so, can you share?  I can utilize a drop down but prefer the radio as they need to select what to do with 3-4 deifferent options.

Thanks all and happy coding.
Ajay K DubediAjay K Dubedi
Hi Beekman,
<apex:page>
<apex:form >
<apex:pageblock id="allcons" title="Available Contacts" >         
             <input type="radio" name="radio1"/>                          
                <apex:outputlabel value="xyz"/>
                
       <input type="radio" name="radio2"/>                          
                <apex:outputlabel value="abc"/>
                 
                 <input type="radio" name="radio3"/>                          
                <apex:outputlabel value="123"/>
                 <input type="radio" name="radio4"/>                          
                <apex:outputlabel value="qwe"/>
</apex:pageblock>
</apex:form>
</apex:page>

Here i have use html radion buttons If it helps then mark it as best 
BeekmanBeekman
Hello,
Thanks for responding however, how do you get that to work with a button?
Thanks