I just figured out that we can use global events to do something when some event like page save occurs.
I'm working on:
DocumentEvents.Insert.After += Document_Insert_After;
DocumentEvents.Update.After += Document_Update_After;
I want to read the form data submitted from the page. How can I do this when page is created and updated?
Can I read something from e.Node where e is the reference of DocumentEventArgs?
Thanks Juraj, I was able to read values like this:
String name = e.Node.GetStringValue("name", null);
As you can see in the document event handler reference, the DocumentEventArgs contain the Node object data - so using these you can get the values of the properties and fields. For example:
var doc = e.Node;
string DocName = doc.DocumentName;
Please, sign in to be able to submit a new answer.