Nintex Forms - copying text to Multiple Lines of Text field (Javascript)

  • 11 February 2019
  • 1 reply
  • 21 views

Badge

I have an application where I wish to use a Nintex form to copy data from another list ("Other") into a multiple lines of text field in the current form ("Current").

 

I use a calculated value control to do the lookup. This succeeds for both single and multiple line fields in "Other". I then use a Javascript function to copy from the calculated value to a field in "Current". That is at its root:

NWF$('#' + DestinationField).val(NWF$('#'+CalcLookup).val());

 

When DestinationField is a single line of text field, this works. If DestinationField is a multi line field, nothing happens. I have tried copying to both fields in the same Javascript function and the single line field updates, while multi line doesn't. (I have also tried to copy to a multi line textbox control without success.)

 

1) Is what I want to do possible in Javascript?

2) Is there another mechanism to copy iformation into multiple line fields in the forms interface? (Using single line field as an intermediary also didn't work.)

 

Ian.


Reply