Radio Button
hello.
How i store data from a radio Button into my database?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
hello.
How i store data from a radio Button into my database?
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.
sorry but i can't open the link you provided.
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?
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.
Hi, so sorry but not very sure what you meant.
Test out my appand click save? Where do i find the save button?
Where to find my "network" tab?
sorry.