You are viewing limited content. For full access, please sign in.

Question

Question

If I have a lookup rule on a single line input, from a programmatic standpoint (java script/jquery), what event triggers the lookup (focusout, change, etc...)?

asked on July 23, 2018 Show version history

Hi, 

If I have a lookup rule on a single line input, from a programmatic standpoint (java script/jquery), what event triggers the lookup (focusout, change, etc...)?

1 0

Replies

replied on July 24, 2018

Good day Peter

 

 $(document).on("lookupcomplete",function(){
    //Code here
  });

2 0
replied on July 24, 2018

Thanks for the input Rendani, but it did not work on my test. What worked was the below. Hope this will help someone else.

 

This workaround will trigger a change after form loads:

var delayMillis = 1000; 

setTimeout(function()

        {

  $(".HOLDAPPID").on('click',function()

            {

  $(".HOLDAPPID input").val(strValue).trigger("change");

});

          $(".HOLDAPPID").trigger('click');

}, delayMillis);

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.