Gif does not restart when open a new form

I’m using this GIF which is not looped. It’s “playing” only once.
It’s a spinning wheel and at the End a Text message.

2X_8_8db0223b6fdb70b842590e9d170c5e76de45a456.gif

When I open a form first time it is playing the GIF once.
It pauses at the End, so the User only sees the Text message.

When I open the form again, the GIF will not start at the beginning, but will show only the end’s Text message.

So it seems as AppSheet thinks: “Oh I know this GIF, and I already played it till the end, so it would be boring to show it again”

But I would need it to start at the beginning.

Solved Solved
0 6 403
1 ACCEPTED SOLUTION

I can only speculate, but it sounds like the assets are loaded once and remain loaded until the browser or application is refreshed.

I wonder if it would be possible to reset or reinitialize the SVG animation by including a placeholder virtual column value? Perhaps a RANDOM() integer that doesn’t do anything to the SVG, but prevents AppSheet from caching the image? Here would be an example below:

... <rect id=""",[randomvalue],""" ...

If this works, it would effectively be tricking AppSheet into thinking its a new image every time the form is loaded. One possible concern is that, over time if the application is not refreshed, these images may begin to take up a lot of device memory.

View solution in original post

6 REPLIES 6
Top Labels in this Space