You are viewing limited content. For full access, please sign in.

Question

Question

Update radio button in collection

asked on September 28, 2016 Show version history

I have values from a database that I have populated in a collection.  I need to take the value of M or F from the .OTHER_SEX_CODE input field and update the radio button .gender.  I am getting the variable in my code to alert but the radio button is not being selected.
 

1 0

Replies

replied on September 29, 2016

Try removing the $() wrapper from within your second find() function. You can also merge the two find() functions together.

$(this).find('.gender input[...]').attr('checked',true);

0 0
replied on August 14, 2017 Show version history

I changed the code to this:

--Removed the extra find

--Added the value=

The only remaining problem is that the update is not happening on data load from the Lookup.  I added the alert and when I manually change the field, the code is running correctly.

I am not sure how the initial selector needs to be changed to get this to completely work correctly.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.