Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

No Warning in Popup Form

Questions related to using nuBuilder Forte.
Post Reply
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

No Warning in Popup Form

Unread post by Timo »

'Leave this form without saving?' is shown when I leave a form with unsaved data. This is not the case for forms created with nuPopup. When I click the "x", the form closes without warning and all unsaved data is lost.
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: No Warning in Popup Form

Unread post by Timo »

Does anyone have an idea how to prevent an unsaved form from being closed? Sometimes it happens that a user closes the form without saving and then all changes are lost :(
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: No Warning in Popup Form

Unread post by admin »

Timo,

That is fixed now on Github.

Let me know if it works for you.

Steven
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: No Warning in Popup Form

Unread post by Timo »

Thank you - it works for me :D
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: No Warning in Popup Form

Unread post by Timo »

Just noticed that the message does not translate, appears just in English.

Compare:

Code: Select all

if(!confirm(nuTranslate('Leave this form without saving?'))){
https://github.com/nuSoftware/nuBuilder ... ving&type=

With:

Code: Select all

if(!confirm('Are you sure you want to leave this page?\n\nYou will lose any unsaved data.')){
https://github.com/nuSoftware/nuBuilder ... 74407341d4
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: No Warning in Popup Form

Unread post by admin »

Timo,

I have added some stuff to the Translation table.
tran.PNG
It is now on Github (you'll need to run Update).

Steven
You do not have the required permissions to view the files attached to this post.
Post Reply