Sauter la navigation

[Résolu] Warning when not saved

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 4 années. 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)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par Puntorosso Il y a 4 années.

Assisté par: Luo Yang.

Auteur
Publications
#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!