Skip to main content
Nintex Community Menu Bar

javascript is updating two multi text when using .closet function

  • April 9, 2016
  • 4 replies
  • 17 views

Forum|alt.badge.img+3

I am trying to update multi text box and do it fine with this code.

var txtArea = NWF$('#' + varSig).closest('tr').find('div[id$="_inplacerte"]');

txtArea.html(txtBase);

The problem I am running into their is another multi text box that it is finding next to it and updating that one also with the same txt, txtBase.

4 replies

Forum|alt.badge.img+16
  • April 9, 2016

You could set a css class to your multi text and refer it on your jquery.


Forum|alt.badge.img+3
  • Author
  • April 12, 2016

I used this syntax

var txtAreaManager =NWF$('.cssManager');

txtAreaManager.text(txtbaseManager);

It does write the text on the page but when I push save it doesn't save to the list.  It doesn't really look like it is in the object either it is weird because the text is writing outside of the object and not inside the multiline textbox.


Forum|alt.badge.img+14
  • Scholar
  • April 12, 2016

try something like this

NWF$('#'+ mltb).closest('tr').find('div[id$="'+mltb+'_inplacerte"]').html("text box 1");

NWF$('#'+ mltb2).closest('tr').find('div[id$="'+mltb2+'_inplacerte"]').html("text box 2");


Forum|alt.badge.img+3
  • Author
  • April 12, 2016

That totally worked thanks for your help Marian