nadiah jabbar
Posts: 0
Joined: Fri Jun 20, 2014 3:42 am

Radio Button

hello.
How i store data from a radio Button into my database?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Radio Button

Hi Nadiah,

Please follow these steps:

1 Open your page in "data" mode.

2 Click on "edit mapping" for "create/update" service datasource.

3 Make mapping from your radioButton component to request field you need.

See details: http://prntscr.com/405sxy/direct

Also you can get value from this element with following code:

pre

//Note: "mobileradiogroup_5" is your component name.
var selectedValue = Apperyio("mobileradiogroup_5").find('input:checked').val();

//Now you can use "selectedValue" as you need.

/pre

Regards.

nadiah jabbar
Posts: 0
Joined: Fri Jun 20, 2014 3:42 am

Radio Button

sorry but i can't open the link you provided.

nadiah jabbar
Posts: 0
Joined: Fri Jun 20, 2014 3:42 am

Radio Button

hi Yurii,
i am unable to open the link that you have provided.

i still couldn't store the data of the radio button to the database.

this is my UI design.
do i need a input box for this?

Image

the mapping :

Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Radio Button

Hi Nadiah,

Please follow the steps from Yurii. This should help. Here is the missing image. Image

Lim Samantha
Posts: 0
Joined: Wed Jun 11, 2014 6:50 am

Radio Button

Hi,
have tried the mapping, but still does not save into the database. Image Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Radio Button

Hi Lim,

Could you please post a screenshot of your Database collection? What fields do you use? Are there any console errors when you run service?

Lim Samantha
Posts: 0
Joined: Wed Jun 11, 2014 6:50 am

Radio Button

There is no error when i test.
Image Image

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Radio Button

Hi Lim,

Please try this use case:

1 Open your app, fill the form and press "save" to invoke "create" service.

2 Open your browser debuger on "network" tab and make screen shots where we can see request parameters. And response from server.

3 Open data base on your questions collection and see what item was just added(is here right fields?).

Regards.

Lim Samantha
Posts: 0
Joined: Wed Jun 11, 2014 6:50 am

Radio Button

Hi, so sorry but not very sure what you meant.

  1. Test out my appand click save? Where do i find the save button?

  2. Where to find my "network" tab?

    sorry.

Return to “Issues”