amitabh26
Nintex Newbie

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

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

Reply
1 Reply
lakshminarayana
Design Dabbler

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

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

Reply