Skip to main content
Nintex Community Menu Bar

Repeating Section dynamically insert data from button click

  • May 14, 2018
  • 3 replies
  • 44 views

Forum|alt.badge.img+6

Hello everyone. I have a list look up where users can pick items. Each time a user clicks there, the calculated value control will get the parseLookup of the item. Then once the user clicks the button, the calculatedValue (which is hidden) will transfer whatever it is to a single line text box inside a repeated section.

Nintex Forms for Office 365

function getItemSelected(){

NWF$("#"+hostnameRepeated).val(NWF$("#"+calculatedSelection).val());
alert("Done");
}

I have this custom javascript function and it works on the first row. However, once I added rows, it is still updating the first row.

3 replies

Forum|alt.badge.img+14
  • Scholar
  • May 15, 2018

javascript variable is only assigned to a control in first repeating section's row. you should rather use CSS class to address controls in all the rows.

as well you have to address exact row in which you want to update a control


Forum|alt.badge.img+6

Yes, I managed to find the solution somewhere in this group with the css control as well. happy.png Last question though since I cannot find any on the documentation. Why can't the button be added to a repeating section?


Forum|alt.badge.img+14
  • Scholar
  • May 15, 2018