Search

Dear All,

I am trying to implement an undo button in a front-end interface that I am building.

More specifically, when data is deleted (I use a checkbox field that controls whether data is visible or not in the front-end, so it's not actually deleted), I want to provide an undo button that is visible right after the event is submitted, in case someone deletes something accidentally.

So I am wondering whether it is possible to retain the last event data, or at least the id of the last "deleted" element, so that when the undo button is clicked, I can pass that to the event.

Your help is very much appreciated!

After you pass an event the event data is still attached to the page unless you forward to a different page, so you could have the undo button there, if you were to navigate away and back you would lose it though. View your source after submitting and you can see the event data attached at the bottom. (you might have to turn this on in your manifest config file)

This is brilliant! It's exactly what I was looking for.

Question fully answered, thank you very much :)

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details