We have a form implementation that is supposed to prevent a form from being submitted until it is fully loaded. The form is very lookup heavy, and some of the look ups have in the upwards of 20 or more records. In the form javascript, there is " $(document).on("lookupcomplete", function (event)..." and I cannot find a definition of this anywhere in the form javascript .
Is this an inhouse method defined somewhere else? since it is supposed to be disabling the form until all the look ups complete, it would make sense (still doesn't work though) or is this the name the method and the form just isnt coded to do what was supposed to be delivered?
Any insight is appreciated. I am looking for other questions/responses for the best way to handle this scenario where a lookup driven by a stored proc needs to complete before the form can be submitted.
I have provided the portion of the method below - please note, the status method that is called checks the status and if closed, makes most elements on the page read only
$(document).on("lookupcomplete", function (event) {
if (event.triggerId=='Field364') {
$('#q365 select').val($('#q273 input').val());
}
Status();
// Allow submitting
$(".action-btn").prop('disabled', false);
});