I would like to add a Cancel button that will undo any changes the user has made since the last save and instantly take them to browse form.
I realize that I can click on breadcrumb, but It give message "Leave this form without saving".
Trying to give user a faster way to back out instead of having to click multiple times.
Thanks
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Cancel
-
- Posts: 503
- Joined: Thu May 24, 2012 2:08 am
- Location: Milan, Italy
- Contact:
Re: Cancel
rnott,
I think this is an extremely useful feature to avoid accidentally losing user's work, but if you want you can comment this two functions in index.php: Max
I think this is an extremely useful feature to avoid accidentally losing user's work, but if you want you can comment this two functions in index.php: Max
You do not have the required permissions to view the files attached to this post.
-
- Posts: 73
- Joined: Mon Feb 24, 2014 2:58 pm
Re: Cancel
Tinka,
You could skip this warning by resetting edited..
or
does the same thing.
Steven
You could skip this warning by resetting edited..
Code: Select all
nuFORM.edited = 0;
Code: Select all
nuSetHash('edited', 0);
Steven
-
- Posts: 73
- Joined: Mon Feb 24, 2014 2:58 pm
Re: Cancel
Steven,
I tried this in the Javascript tab
It did not work.
But putting nuFORM.edited = 0; on the onblur event on every form object skips the alert so I went with this.
Tinka
I tried this in the Javascript tab
Code: Select all
function nuOnSave() {
nuFORM.edited = 0;
return false; //don't want to save the record, save button is removed
}
But putting nuFORM.edited = 0; on the onblur event on every form object skips the alert so I went with this.
Tinka