Skip to main content
Nintex Community Menu Bar

How to set default value of a new form's list lookup control?

  • December 22, 2017
  • 1 reply
  • 181 views

Forum|alt.badge.img+1

I have used event javascript but list lookup change event does not get fired.

1 reply

Forum|alt.badge.img+9

To set a value to lookup control: 

use 'LookupId;#LookupValue' like below.

NWF$(document).ready(function()
{
   NWF$('#'+ddlLookup).val('5;#Servicing');
});

For Change Event:

you can change event
NWF$('#'+ddlLookup).change(function()
{
   var lookupVal = NWF.RuntimeFunctions.parseLookup(NWF$('#'+ddlLookup).val(),true);
   if(lookupVal == 'Servicing')
   {
      alert('Servicing');
   }
});