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

Update multiline text box in repeater section using jquery

Jump to solution

Hi Team,

Can you please help me achieve the below functionality in nintex forms.

I have a repeater section with a multiline text box. I want to update the multiline textbox dynamically at runtime using jquery.

I could get the first multiline textbox field value when looping through but undefined values for the next multiline textboxes.

Please help me to read and update the multiline text box values in repeater section.

Thanks in advance,

-Usha

Labels: (1)
0 Kudos
Reply
5 Replies
krishnachaluvad
Nintex Newbie

Re: Update multiline text box in repeater section using jquery

Jump to solution

Hi Usha,

Could you share how you are referencing the multi line text box on repeater section? 

Thanks,

Krishna.

0 Kudos
Reply
usharamanamma
Nintex Newbie

Re: Update multiline text box in repeater section using jquery

Jump to solution

Hi Krishna,

Thank you for the quick reply.

Below is my code

NWF.FormFiller.Events.RegisterRepeaterRowAdded(function ()
{
NWF$(".your-repeater .nf-repeater-row:not('.nf-repeater-row-hidden')").each(function ()
{
var $row = NWF$(this);
var $test = $row.find(".input1 input").val();  - worked for single line of text but showing blank for multiline text box

var $test1 - $row.find("#"+repid).val(); - while looking, got the 1st row value. But from 2nd row value it says undefined.
alert($test + $test1);


});


});

0 Kudos
Reply
Automation Master
Automation Master

Re: Update multiline text box in repeater section using jquery

Jump to solution

the exact code may depend on whether multiline text control/field is plain text or reach text enabled....

have a look here  

0 Kudos
Reply
Highlighted
usharamanamma
Nintex Newbie

Re: Update multiline text box in repeater section using jquery

Jump to solution

Hi Marian,

I am using plain text multiline control from nintex general controls.

-Usha

0 Kudos
Reply
Automation Master
Automation Master

Re: Update multiline text box in repeater section using jquery

Jump to solution

for plain text following should work

NWF.FormFiller.Events.RegisterRepeaterRowAdded(function (){
  NWF$(".repeater .nf-repeater-row:not('.nf-repeater-row-hidden')").each(function (idx,elem){
    var $row = NWF$(this);
    var $test=$row.find(".input1 textarea").val();
    console.log('[' + idx + '] '+$test);
  });
});

View solution in original post

Reply