I know about lookupcomplete, however it gets triggered with each lookup completing and I need a way to know when there are currently no other lookups running so I will only hide my loading html when all lookups are done. I can't do the event.triggerId 'trick' because many of lookups are based off the same trigger.
I'm working on a paginated form and hiding/showing a custom loading html on every tab when look ups are running. If I go to the last tab I can see the spinner next to the submit button well after my custom htmls are hidden.
My code so far. "loadingText" is the class name that my custom HTMLs have
$(document).on("lookupcomplete", function (event) {
$('.loadingText').each(function () {
$(this).hide();
});
});
EDIT: I can't even check if fields are empty or not, because some lookups may end up not pulling data.