AnsweredAssumed Answered

How to correctly set dropdown value using JavaScript?

Question asked by amal.abey on Jul 31, 2016
Latest reply on Mar 13, 2018 by jpmhuls

I am using Nintex Forms 2013 to develop a form. I have a drop down field (financial year). Once the page is loaded, I need to select the current financial year as the default one. I make a REST api call to get the current financial year and set it to the dropdown on "NWF.FormFiller.Events.RegisterAfterReady" event. The below code worked until last week.

 

var fyValue = ko.dataFor(NWF$("#" + ddlFYLookupId)[0]);

fyValue.selectedItem(currentYear.Value);

 

I upgraded the Nintex Forms to latest version today, and now above doesn't work. Can someone please help me how to do this in forward compatible manner?

Outcomes