In my custome code I check some values of the node which I want to save and if something is wrong set e.cancel to true.
Now, on the content page comes the error message and the "Save and Publish" button is disabled!! So the user can't fix the wrong values and click the "Save and Publish" button again.
Is this a bug? In my eyes the "Save and Publish" button should not be disabled if e.cancel was set to true.
Have a look for any errors in the JavaScript console of your browser. I've had the same issue when an exception was thrown in an event handler on the server side. If you're in running in debug you should see the exception in the error response.
Hi Steven, saw an error in console but seems nothing to do with the event handler but somehow disabled the "Publish and save" button. On a new content page it worked for me.
ContentService Saving cancel
Hi,
in my ApplicationEventHandler I implemented the saving event.
In my custome code I check some values of the node which I want to save and if something is wrong set e.cancel to true.
Now, on the content page comes the error message and the "Save and Publish" button is disabled!! So the user can't fix the wrong values and click the "Save and Publish" button again.
Is this a bug? In my eyes the "Save and Publish" button should not be disabled if e.cancel was set to true.
Any ideas? regards fabian
Hi Fabian,
Have a look for any errors in the JavaScript console of your browser. I've had the same issue when an exception was thrown in an event handler on the server side. If you're in running in debug you should see the exception in the error response.
Hi Steven, saw an error in console but seems nothing to do with the event handler but somehow disabled the "Publish and save" button. On a new content page it worked for me.
Thanks for the hint :)
is working on a reply...