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

Question

Question

How to use the javascript lookupcoplete events

asked on December 7, 2020

Hhow to know if all of my lookup events is completed using javascript? 

0 0

Answer

SELECTED ANSWER
replied on December 7, 2020

No, both will be required depending on your form. Since one runs if a lookup completes right away, and the other runs if a lookup completes at any  later time while the user is filling the form.

You can just have both call a shared function to catch all events.

1 0

Replies

replied on December 7, 2020

There are 2 different methods used in 2 different ways.

 

$(document).ready(function () {
  $(document).on("onloadlookupfinished", function () {
    //For lookups that are able to run when the form is loaded, because all criteria is met.
  });
  $(document).on("lookupcomplete",function(event) {
    //For lookups that run after the form has loaded, because the condition is changed/met by the user entering information
  });
});

 

1 0
replied on December 7, 2020
onloadlookupfinished is this the best one to use when every lookup is finished loading ?
0 0
SELECTED ANSWER
replied on December 7, 2020

No, both will be required depending on your form. Since one runs if a lookup completes right away, and the other runs if a lookup completes at any  later time while the user is filling the form.

You can just have both call a shared function to catch all events.

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

Sign in to reply to this post.