How do you handle forms triggering the submit button webpage is refreshed ?

I have this problem with forms and buttons triggering a submit action when I press F5 (which reloads the page).

 How do you guys keep this from happening?

Example:

1. I fill-in a Personal Information form like First Name and Last Name.

2. I click the Submit button which uses Submit ( not Ajax Submit).

3. Entry gets added to database.

4. I press F5.

5. Page is reloaded and triggers the submit button one more time.

6. Duplicate entry gets added to database.

Hi Helios,

Are you directing to another page, at end of save action, or you stay/direct to the same page?

Hi,

You are having that problem because you don't navigate to another page. Maybe at the end of the save you can navigate to another page or even the same if you need.

Regards,

Marcelo 

Marco Arede wrote:

Hi Helios,

Are you directing to another page, at end of save action, or you stay/direct to the same page?

I'm staying at the same page. Thanks


Hi Helios

I'm staying at the same page. Thanks

Then I'd suggest you to update the record's identifier, which populates your widget form. This will probably avoid the duplicate entry, in case you execute F5 (saving two times).

Regards,