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

How Do I Reset Each Dropdown in A Repeating Field?

Why does the code below work on the first but not the second row?

 

1.jpg


NWF$(document).ready(function() { NWF$(".BannerRequirementsClass .nf-repeater-row").each(function(index) { var BannerCodeDD = NWF$('#' + BannerCode); BannerCodeDD.change(function() { NWF$('#' + BannerQuantity).val(""); NWF$('#' + BannerQuantity + " option:selected").removeAttr("selected"); }); }); });

 

Labels: (1)
0 Kudos
Reply
2 Replies
Community Manager Community Manager
Community Manager

Re: How Do I Reset Each Dropdown in A Repeating Field?

May I ask an obvious question, why are you trying to reset the dropdown? This is the default setting that when a new field or row is added, the default value will show and the user can select from there. Are you trying to force a value?

0 Kudos
Reply
furstlars
Nintex Newbie

Re: How Do I Reset Each Dropdown in A Repeating Field?

I'd like the Banner Quantity field to reset if the Banner Code selection changes. The first row works, but not the second.
0 Kudos
Reply