Mobile forms cacheing

When we load forms on mobile we notice that sometimes the form caches information from a previous time is there a way to prevent this…some how to clear cache on form load?

Hi!

Please add this code to your JavaScript Editor to prevent the from caching:

localStorage.clear();

My assumption is I need to put this as the first thing in my fd.spRendered(function(){
}

It can be placed anywhere, but it’s even better to put it outside events.

What is the code to clear caching on form load?

Hello @adasilva,

The code would be:

fd.spRendered(function(){
    localStorage.clear();
});