Form SLT default (editable) value pulled from another field

  • 14 January 2021
  • 1 reply
  • 7 views

Hi all,

 

I am trying to pull a string that was input into a text field in my Nintex form, directly into another SLT editable field. To give context, An 8 digit number is input as a string in one field, and this number is the first 8 digits required for a longer string - so I am trying to pull those first 8 directly into the second field to minimize user effort. I am using the Classic Form version.

 

I am assuming this will be achievable with some JS if anybody has any skeleton code they can share?

 

Thanks


1 reply

Badge +11

@seannn You could use something like this:


 


NWF$('#'+field1).change(function() {


NWF$('#'+field2).val(NWF$('#'+field1).val());


});


 


 

Reply