cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
furstlars
Nintex Newbie

How Do I Set A Radio Button Value, Based on Another Button's Value?

Jump to solution

I'm having trouble getting this to work. I can clear the Approve radio button value with .prop("checked", false);, but can't set its value (initially empty) using the method marked in red below:

var DecisionRB = NWF$('#' + Decision);

DecisionRB.click(function() {
if (DecisionRB.val()=="Recommend") {
NWF$('#' + Approve[value="No"]).prop("checked",true);
}
})

Labels: (1)
Tags (2)
0 Kudos
Reply
2 Replies
jpmhuls
Nintex Newbie

Re: How Do I Set A Radio Button Value, Based on Another Button's Value?

Jump to solution

In stead of .prop("checked","true") try .attr("checked","true")

0 Kudos
Reply
furstlars
Nintex Newbie

Re: How Do I Set A Radio Button Value, Based on Another Button's Value?

Jump to solution

This worked, from another post (after much digging, thanks Marian Hatala‌)

.find('input:radio[value="No"]').click();

View solution in original post

Reply