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

Question

Question

JavaScript before() method no longer works when upgrading to Forms 10.4.5

asked on February 22, 2022 Show version history

I had to comment out the JavaScript call to the before() method (used to move form objects after form load) wherever it appears in forms that have at least 1 Lookup Rule, because after upgrading Forms from 10.4.0 to 10.4.5, it would cause the "Retrieving fields values..." message to appear at the bottom of the form forever.
i.e.
 $('#CloseButtonID').before($('.action-btn'))

Has anyone else seen this behavior?

0 0

Answer

SELECTED ANSWER
replied on February 22, 2022 Show version history

10.4.5 I believe is when they added more "lookup in progress" functionality to block the submit button and such while a lookup is in progress to prevent issues submitting with incomplete data.

As a result, the lookup events are now interacting with the action buttons, so if you alter them in significant ways it can break those events and cause it to not remove the "retrieving field values" message, or possibly even prevent submission of the form.

If you want to have your submit button in a different location, rather than moving the existing one I would suggest hiding (not removing) the built-in one, adding your own, and adding an event handler that triggers the click event on the default button(s).

For example,

CSS

.Submit {
    display:none !important;
}

 

JavaScript

$(document).ready(function(){
    $('#customSubmit').on('click',function(){
        $('.Submit').click();
    });
});

 

1 0

Replies

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

Sign in to reply to this post.