Home Forums Add-ons Flexible Content Field Alert on Flexible content remove


Alert on Flexible content remove

  • Hola.

    Is there a way to add alert when user tries to remove flexible content field from page.
    Wanted to ask ‘Are you sure?’ so it doesn’t delete all of the content by accident.

    Thanks in advanced

  • Found it:

    $('body').on('click', '[data-event=remove-layout]', function(e) {
    	return confirm("Delete widget?");
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.