AnsweredAssumed Answered

AutoPopulate the multi lookup field based on other lookup field change.

Question asked by dnes24 on Aug 28, 2018

I have a ListA which has a multi value lookup column "Location" , single valued lookup column "City", Multiline textbox "City Details" and some more columns

Now I have created a List B with same multi value lookup column "Location" , single valued lookup column "City", Multiline textbox "City Details".

 

Here in ListB Onchange of City, I have to auto populate the City Details and Location fields

 

Am able to auto populate the City Details - multi line text using the below approach

Nintex – Setting Default Single Line Textbox Text from List Lookup – That Must Have Been Somebody Else 

 

But am not able to set the Location - multi value lookup column using the same approach.

 

setMultiLookupValue(lookup("ListA", "ID", City, "Location"));

 

function setMultiLookupValue(value){
NWF$('#'+listBlocationControl).val(value);
}

 

Also the below approach works fine with document ready function, but the same not works with onchange events

How to Set a multi value Lookup field by javascript? 

Outcomes