Sunita
Posts: 0
Joined: Sat Nov 15, 2014 2:40 pm

Radio button selection storing

How can I store the user selection of a radio button?

The radio button is currently being populated from a database list service. I would like to store the '_id' from the database of the user selection from the list of options in a local storage variable.

Here is what I have so far:

Populating the radio component list items from the database list service:

Image

This works fine, by which i mean that it populates the list on my page.

I tried doing this, but it does not work:

Image

Please help, and i am bound to post praise for you guys!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Radio button selection storing

Hello!

Let me know if this post helps https://getsatisfaction.com/apperyio/...

Sunita
Posts: 0
Joined: Sat Nov 15, 2014 2:40 pm

Radio button selection storing

Hi Maryna!

That was the post that i was following to do what I have done above, but it does not seem to work for me.

Could you maybe list out a few steps on how to go about it?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Radio button selection storing

Please clarify are there any errors in console?

Sunita
Posts: 0
Joined: Sat Nov 15, 2014 2:40 pm

Radio button selection storing

Hi Maryna,

I got it sorted. Thank you so much!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Radio button selection storing

Thanks for update!

dphoeck@gmail.com
Posts: 11
Joined: Sun Mar 21, 2021 11:21 pm

Re: Radio button selection storing

I am having trouble mapping the selected radio button to a local storage value. How should I be mapping this?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Re: Radio button selection storing

Hello,

Could you please provide us with the screenshot of that mapping to understand what is going wrong there?

dphoeck@gmail.com
Posts: 11
Joined: Sun Mar 21, 2021 11:21 pm

Re: Radio button selection storing

Hi Serhii, I have since figured out the mapping. Thank you!

Return to “Issues”