Solved

Nintex Forms - lookup with 2 filters



Show first post

27 replies

Badge +4

I solved it by creating a hidden field, which joins the 2 fileds by Javascript so I can filter on that.

NWF.FormFiller.Events.RegisterAfterReady(function() 

    NWF$("#"+LocationControl).change(ProcessConcatenation); 
    NWF$("#"+CategoryControl).change(ProcessConcatenation); 
 
    function ProcessConcatenation() 
    { 
        var locationValue = NWF$("#"+LocationControl).val().replace(/[^a-zs]/gi, '');
        var categoryValue = NWF$("#"+CategoryControl).val().replace(/[^a-zs]/gi, '');
 
        NWF$("#"+HiddenField).val(locationValue+"_"+categoryValue);         
        NWF$("#"+HiddenField).trigger("change"); 
        NWF$("#"+HiddenField).focus();
    } 
}); 

Badge +3

LocationControl ? is it the name of your control ?

Reply