+ Start a Discussion
shreekanthshreekanth 

how to store multipe radio button values into custom object

hi,

  

  i have a scenario that how to store mutilple radio buttons values into custom object through custom controller ......

please can any one tell????

 

 

thanks

Srikanth

bpl3792bpl3792

Hmm well the way I would go about it is with jQuery + jsremoting. Add a single lookup field to an object with all your radio data. Extract the list data and dump the text as the radio button text and the id as the radio button value. I might be making it harder than it needs to be but I just checked and you can't create radio button fields by default in salesforce.

bpl3792bpl3792

Looks like that was the "hard way"...still, using a seperate object to populate the values wouldn't be a bad idea it seems.
http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_selectRadio.htm

EamonODohertyEamonODoherty

Hi,

 

I recently wrote a blog post that may spark an idea for you on this one.

The concept will allow you to store any number of radio button values to be stored as a single value using exponentiation.

All you have to do now is the fun bit and write the class which should be straight forward I think.

 

The post is titled: Store and Report Unlimited Multiple Choices using Exponentiation

and here's the link to it....

http://londondayoff.blogspot.co.uk/2012/10/store-and-report-unlimited-multiple.html

 

If you have any q's or thoughts about it please feel free to let me know.

 

' hope it helps.

 

 

Regards,

Eamon