cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

How to Set a multi value Lookup field by javascript?

Jump to solution

How to Set a multi value Lookup field by JavaScript?

0 Kudos
Reply
3 Replies
Workflow Hero

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

Reply
Workflow Hero

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
Workflow Hero

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