I had this working, but with the new upgrade it's broken. I'm hoping someone can give me a hand and let me know what happened and if there is some other way I should do this now.
Essentially what I'm doing is reading info from a database, in this instance it's the category field. This field was entered into the database in by a different create form with the options as radio buttons and then stored in the database as text for later recall. When someone is viewing an entry and wants to edit it they pull up the edit form. This form is the exact same as the entry form except that it's pre populated with data from whatever entry they are editing. So the name, the address, etc are all easy to fill in, but I want the radio buttons for several options filled in with what is already in the database. I was using the following code to accomplish this, but it has now stopped working.
code
if (value == "Restaurants"){
Appery("mobileradiobutton_40").find("input[type=radio]").prop("checked", true); //select radiobutton
$('input[name=mobileradiogroup_31]').each(function(){$(this).checkboxradio("refresh")}); // refresh all radio buttons in group
}
if (value == "Banks & ATMs"){
Appery("mobileradiobutton_32").find("input[type=radio]").prop("checked", true);
$('input[name=mobileradiogroup_31]').each(function(){$(this).checkboxradio("refresh")});
}
if (value == "Bars & Entertainment"){
Appery("mobileradiobutton_33").find("input[type=radio]").prop("checked", true);
$('input[name=mobileradiogroup_31]').each(function(){$(this).checkboxradio("refresh")});
}
if (value == "Government"){
Appery("mobileradiobutton_34").find("input[type=radio]").prop("checked", true);
$('input[name=mobileradiogroup_31]').each(function(){$(this).checkboxradio("refresh")});
}
/code
There are more categories, but I was checking them all the same way so I cut it off for brevity.
Thanks.