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

Question

Question

Forms issue: lookups are synchronous and they cause the entire UI to freeze

asked on October 31, 2015 Show version history

We have a collection field that contains a bunch of single line fields. These single line fields have "fill Field X with values from column Y" lookup rules.

Whenever the user clicks the Add button to add another item to the collection, the entire UI freezes. The new fields show up only after the lookup is done. This is an issue because the lookups can take ~5 seconds to complete, during which the user gets confused because their browser hangs.

We tried adding a loading overlay gif when the user clicks the Add button so that they can at least know stuff is happening. The problem is that the gif does not show up until AFTER the lookup is done.

I did some debugging and found that this is because Forms performs the XHR synchronously, and synchronous requests cause most browser UIs to lock up. Even the scrollbars will stop functioning!

http://stackoverflow.com/questions/6015273/loading-gif-freezes-when-code-is-executing

We need an option in the lookup rules to have the lookup performed asynchronously (using the async: true option in Jquery's Ajax function).

Thank you for reading.

0 0

Replies

replied on November 2, 2015

Sorry I couldn't recreate your issue.  We don't set async to false(async in jquery is true by default) except during validation before a form is submitted. I prevented lookup from returning on my webserver and added new rows with a lookup field without any difficulty.

0 0
replied on November 2, 2015

Thanks Robert. It happens consistently and I can reproduce it. Maybe async isn't the issue. I'll open a case with support.

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

Sign in to reply to this post.