Trigger for once page is rendered

I’ve got an “invoice” page with repeating groups, that is setup for printing. There is a lot of generation/rendering time, where the user can see things gradually build up the page contents. If a user clicks PRINT in the browser too quickly, the entire page is NOT rendered and therefore doesn’t print properly.

Is there a way to know when all items have been rendered? I really would like to have a “loading” type animation while everything else is rendered.

“Page is Loaded” WF trigger fires before page is rendered so doesn’t help.

Structure of page isn’t overly complex but has 2 levels of repeating groups.

You can try adding a condition to your Print button that will only show it when all repeating groups have been loaded:

Combine that with conditions like Page laoded entirely and you should achieve the result you want.

The “fully loaded” approach is a little bit hit & miss sometimes depending on the needs, because bubble seems to consider a RG as fully loaded once it’s data is loaded - but not necessarily the visual appearance itself.

There’s a handy little plugin created called “Loaded Trigger” to solve this, which puts a visual element into the RG and detects when THAT is fully rendered, and it works well.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.