cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

How to Set a multi value Lookup field by javascript?

Jump to solution

How to Set a multi value Lookup field by JavaScript?

Tags (2)
0 Kudos
Reply
3 Replies
Highlighted
Nintex Newbie

Re: How to Set a multi value Lookup field by javascript?

Jump to solution

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

View solution in original post

Reply
Highlighted
Nintex Newbie

Re: How to Set a multi value Lookup field by javascript?

Jump to solution

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?

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: How to Set a multi value Lookup field by javascript?

Jump to solution

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

0 Kudos
Reply