Automatically saved every 30 seconds?

Hello,

Do you have any leads regarding my problem?

I want my form to be automatically saved every 30 seconds after creation or when updating?

Thank you

This in onScriptInit should do the trick

?>
<script type=“text/javascript”>
setInterval(“nm_atualiza(‘alterar’);”,60000);
</script>
<?php

1 Like

Great thank you !

So simple?
I had seen other messages with this function, but I cannot find anything in the documentation regarding the parameters.

I will adapt it to my needs, because for the moment, it only works if the form has been saved a first time.

As I am using it in a master / detail context, I will try to activate it only when a new element has been added.

Thank you !!

🚀 Scriptcase 9.12 is now available! Check out the new features here 👉🚀 Next Monday (02/24), Scriptcase 9.12 will be released! Check out the new features before anyone else 👉