Skip to main content
Nintex Community Menu Bar

Update multiline text box in repeater section using jquery

  • December 27, 2017
  • 5 replies
  • 37 views

Forum|alt.badge.img+6

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

5 replies

Forum|alt.badge.img+12
  • Nintex Partner
  • December 27, 2017

Hi Usha,

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

Thanks,

Krishna.


Forum|alt.badge.img+6

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);


});


});


Forum|alt.badge.img+14
  • Scholar
  • December 27, 2017

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

have a look here  


Forum|alt.badge.img+6

Hi Marian,

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

-Usha


Forum|alt.badge.img+14
  • Scholar
  • December 28, 2017

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);
  });
});