Question regarding Auto Save feature in Scriptcase

I love the feature Scripcase has implemented regarding allowing a user to set their Scriptcase software preferences to “Auto Save” each time you leave a page that you have made changes on when you are adjusting your applications. I was wondering, how was this done? Was it Javascript or is there perhaps a module in Scriptcase that we can apply to activate this in our applications? Any information is greatly appreciated :slight_smile: Thanks!

Hey Lisa.
You’re talking about our interface right (development) ?

In this case it is JavaScript. Unfortunately there isn’t any option for applications (unless it is something new that I am not aware - vacations xD)

You can however, make a custom JS function to do that, it is quite simple actually.

Commonly the fields of your application will be inside a form element.
You can apply a function easily to all important fields.
This function will raise a flag whenever the value of any fields is changed to something new.
And before the user navigates it can send an ajax to save the data.

I did already something that saved the form into session while they’re typing or onblur of the field that allowed the logged user to continue the forms even after they close the browser tab for example.

You can also make a javascript timer to save it form time to time, either in session or in the database, its up to you.

Sorry it is only ideas and not raw code with descriptions.

Thank you Cavadinha! Ideas are always welcome here :slight_smile: