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

Question

Question

Applying a JavaScript function to field in all rows of a table

asked on December 7, 2016

I am trying to apply a JavaScript function to a field in a table. The problem is it makes me specify the field and row of the field I am applying it to. For instance: ('Field39(1)') for q39 row 1. Essentially I am looking to put something for the (1) to make it so it applies that field in all subsequent rows. If you need more clarification please let me know. Thank you!

0 0

Replies

replied on December 7, 2016

hi ,

i don't know if it helps , but if you are trying to retrieve values you can push them in an array using .each() for the column required and .push() in the array.

Regards .

0 0
replied on December 7, 2016

Please review the JavaScript examples found in the Forms web help. There are several which show how to process fields in table rows.

You can give the fields in the table a CSS class name and then process the field in each row as Maher suggested using .each().

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

Sign in to reply to this post.