odennis1
Forms Fledgling

How do you read in the value of a checkbox in a repeating section using JavaScript?

Jump to solution

I have a repeating section in my form and a few JavaScript commands that occur base on whether the value in the checkbox is true or not.  However, the value always comes back "true".  Here is the script I am using:

NWF$('.rsdata .nf-repeater-row:last').find('.rsBox input').is(':checked')

(where "rsdata" is the CSS of the repeating section and "rsBox" is the CSS of the checkbox in the repeating section)

 

I'm sure I am missing something - such as using a different term instead of "input" or a different function instead of "is(':checked')" - but I cannot figure it out.  If anyone has the correct syntax for it, please let me know

 

Thank you,

Owen

0 Kudos
Reply
1 Reply
odennis1
Forms Fledgling

Re: How do you read in the value of a checkbox in a repeating section using JavaScript?

Jump to solution

Update: I have figured it out.  Here is what worked for me:

NWF$('.rsdata .nf-repeater-row .rsBox').eq(index+1).find('input[type=checkbox]:checked').val()

View solution in original post

0 Kudos
Reply