Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

Adding more fields to the pre-set User database

I need the value to be the selected VISA or Mastercard option.

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

Adding more fields to the pre-set User database

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.

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

Adding more fields to the pre-set User database

Does this code go in Design view? Isn't it mobileradiogroup_18?

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

Adding more fields to the pre-set User database

I added the code, changed to mobileradiogroup_18 and still getting 'true' as the value and not VISA.

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

Adding more fields to the pre-set User database

Okay, figured it out. Thanks!!!

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

Adding more fields to the pre-set User database

Scott,

Glad it's working!

Did you change .attr("value") to .text() ?

Return to “Issues”