Skip to main content
Nintex Community Menu Bar
Solved

How to Set a multi value Lookup field by javascript?

  • December 24, 2017
  • 3 replies
  • 151 views

Forum|alt.badge.img+1

How to Set a multi value Lookup field by JavaScript?

Best answer by lakshminarayana

Try below JavaScript code to set multiple values to lookup control.

NWF$(document).ready(function()
{
   NWF$('#' + ddlmulti).val('5;#;#6;#;#7');           //append all lookup ids that you want
});

3 replies

Forum|alt.badge.img+9

Try below JavaScript code to set multiple values to lookup control.

NWF$(document).ready(function()
{
   NWF$('#' + ddlmulti).val('5;#;#6;#;#7');           //append all lookup ids that you want
});


Forum|alt.badge.img+2
  • 6 replies
  • August 27, 2018

This works fine in document ready function , but the same is not working on change event

NWF$('#'+ddlmulti2).change(function(){
NWF$('#' + ddlmulti).val('5;#;#6;#;#7');
});

Is there anything to be changed on the above script?


Forum|alt.badge.img+2
  • 6 replies
  • November 19, 2018

I tried this in Ninex Forms for Office 365. But it's not working.
Which version of Nintex Forms are you using ?