Adding more fields to the pre-set User database
I need the value to be the selected VISA or Mastercard option.
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/
I need the value to be the selected VISA or Mastercard option.
Hi Scott,
Here is the code:prevar radiogroup = Appery("mobileradiogroup_24").find("div.ui-radio");
var selected = "";
radiogroup.each(
function(e){
if ($(radiogroup[e]).find("label[data-icon=radio-on]") !== ""){
selected = $(radiogroup[e]).find("input").attr("value");
}
}
);/preAfter you run the code you have the selected radiobutton value in variable 'selected'. Please change mobileradiogroup_24 to your radiogroup component name.
Does this code go in Design view? Isn't it mobileradiogroup_18?
I added the code, changed to mobileradiogroup_18 and still getting 'true' as the value and not VISA.
Okay, figured it out. Thanks!!!
Scott,
Glad it's working!
Did you change .attr("value") to .text() ?