AnsweredAssumed Answered

Set List Lookup value using Javascript 

Question asked by chris0204 on Apr 3, 2018
Latest reply on Apr 4, 2018 by jpmhuls

Hello,

 

when I open a new Form I like to select a Element of a List Lookup based on a passed variable.

I can pass the variable to a Textfield in the form but for the List Lookup it isn't working.

 

I know that this topic has been discussed many times before but I don't get it work. 

 

My source code at "Custom Javascript":

 

function Autofill(myValue){
   NWF$("#"+varText_JS).val(myValue); //set Textfield works fine
   NWF$("#" + varLookup_JS + " > option[title='" + myValue + "']").prop("selected", true); //set Dropdown is not working
};

 

Thank you very much!

 

Christian

 

Edit:

Nintex Forms 2013 

Version: 2.11.2.0

Outcomes