Question
How to check who modified the document last time?
Answer
- The Service field with the Document last editor source can be created in the Document Definition:
- Alternatively, the following script can be added to the Script Rule of the field; the field should not be read-only in the rule settings:
this.Field("Name").Text = FCTools.CurrentUserSession.UserName;
Then, add the following script to the After document state changed event handler :
if (ChangedStates.Has(5) ) //check whether the document was verified
{
Document.Field("SectionName\\Name").CheckRules();
}
Comments
0 comments
Please sign in to leave a comment.