Solved

How to Set a multi value Lookup field by javascript?

  • 24 December 2017
  • 3 replies
  • 107 views

Badge +1

How to Set a multi value Lookup field by JavaScript?

icon

Best answer by lakshminarayana 28 December 2017, 10:57

View original

3 replies

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

Badge +2

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?

Badge +2

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

Reply