AnsweredAssumed Answered

lookup field filter duplicate

Question asked by weezer22 on Nov 1, 2016

Hi,

 

I want to remove duplicate entry in list lookup control in Nintex Form 2013 called Division but it does not work. Here what i have so far. Any advise, thank you

 

NWF$(document).ready(function () {
    NWF.FormFiller.Events.RegisterAfterReady(function () {
        try {
            $("select[title='Division'] > option").each(function ()

            {
               if(usedNames[this.text])

               {
                  $(this).remove();
               }

              else

              {
                  usedNames[this.text] = this.value;
               }
          });
        }

       catch (err)

       {
            return;
        }
    });
});

Outcomes