cancel
Showing results for 
Search instead for 
Did you mean: 

Making "Change Comment" field mandatory

thiefrplcmnt_
Champ on-the-rise
Champ on-the-rise

We want to force users to add a revision comment when a file gets a new version, so we can see a summary at the history of that file. How can we make "Change Comment" field (at the "File Edit" window) as mandatory to force users to write revision comments?

1 ACCEPTED ANSWER

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

You can override the "document_edit.xhtml" template and make the textarea mandatory by adding the property required="true" to it.

View answer in original post

5 REPLIES 5

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

You can override the "document_edit.xhtml" template and make the textarea mandatory by adding the property required="true" to it.

Thank you for quick answer,

For the red * to appear just change the class on the "td" element around the label

If you made the change to the XHTML file on the running server then the next time the server stops/starts the nuxeo WAR will be redeployed and erase your changes. To make this permanent you need to make a contribution to override the default document_edit.xhtml file.

Ok, I think I got how it works. The rest is not problem. Thank you so much.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.