cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Repeating Section dynamically insert data from button click

Jump to solution

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.

0 Kudos
Reply
3 Replies
Workflow Hero

Re: Repeating Section dynamically insert data from button click

Jump to solution

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

0 Kudos
Reply
Workflow Hero

Re: Repeating Section dynamically insert data from button click

Jump to solution

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

0 Kudos
Reply
Workflow Hero

Re: Repeating Section dynamically insert data from button click

Jump to solution
Reply