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

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

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

Accept as Solution Reply