cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can i prepopulate the multiline text in a repeating section?

I need to prepopulate the multiline text in a repeating section when a new row is added. I was able to add the rows in repeating section dynamically but not able to access the controls in the row and add values to the control.

0 Kudos
Reply
4 Replies
pfudala
Nintex Newbie

Re: Can i prepopulate the multiline text in a repeating section?

Are you able to use JavaScript to your needs?

0 Kudos
Reply
Not applicable

Re: Can i prepopulate the multiline text in a repeating section?

I tried all possible Javascript code but no luck.

NWF$(".myRepeaterCSS .myControlCSS").val("test");

NWF$(".myRepeaterCSS .nf-repeater-row:last input.myControlCSS").val("test");

If I use text() instead of val(), then the values are population but the control becomes non-editable.

0 Kudos
Reply
pfudala
Nintex Newbie

Re: Can i prepopulate the multiline text in a repeating section?

Do you try to use Nintex events?

For example : NWF.FormFiller.Events.RegisterRepeaterRowAdded

NWF.FormFiller.Events.RegisterRepeaterRowAdded(function ()

{

    var repeaterRow = NWF$(arguments[0][0]);

    var input = repeaterRow.find(".myControlCSS");

    input.val("test");

}

https://community.nintex.com/docs/DOC-1217

Reply
Not applicable

Re: Can i prepopulate the multiline text in a repeating section?

Thank you for your response. I found the issue. I had put myControlCSS in CSS class instead of Control CSS Class.

Now the below code worked for me.

NWF$('.myRepeaterCSS .myControlCSS:last').val("test");

0 Kudos
Reply