Skip Navigation

[Resolved] Warning when not saved

This thread is resolved. Here is a description of the problem and solution.

Problem:

Which is the best way to warn users, if they are leaving the page or loop-item, without saving a form?

Solution:

It needs custom JS codes, for example below thread:

https://stackoverflow.com/questions/7317273/warn-user-before-leaving-web-page-with-unsaved-changes

See the answer "Long, correct answer" in above thread.

Relevant Documentation:

This support ticket is created 3 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Puntorosso 3 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#2059067

Which is the best way to warn users, if they are leaving the page or loop-item, without saving a form?

#2059351

Hello,

It needs custom JS codes, for example below thread:
https://stackoverflow.com/questions/7317273/warn-user-before-leaving-web-page-with-unsaved-changes
See the answer "Long, correct answer" in above thread.

#2061827

Perfect, thanks!