cancel
Showing results for 
Search instead for 
Did you mean: 

Document modified event

marco_altieri_7
Confirmed Champ
Confirmed Champ

I need an event handler that will intercept a modification on a property and update another property of the same document based on the new value.

Is there a way to implement this?

If I save the document the event is called again in an infinite loop. If I do not save the document, of course, I cannot update the property.

1 REPLY 1

Greg_Drayon
Star Contributor
Star Contributor

If you create a listener with the event "before modification" (beforeDocumentModification), you can run a operation chain that will modify your properties according to your needs when you click the save button. You must not save the document from within the operation, as the behaviour set for the save button will deal with the saving itself afterwards.