Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

When save a page after editing, how can i enforce filling "what was changed"?

Devo July 11, 2018

When you want to save a page after edit change,  there is a field "What has you change?"

How can i enforce filling this field? 

1 answer

1 accepted

1 vote
Answer accepted
Tansu Akdeniz
Community Champion
July 11, 2018

Hi @Devo,

There is an open ticket CONFSERVER-6373.

Here is a workaround.

  • Go to Confluence Admin
  • Custom HTML -> At end of the BODY
  • Paste the code

It disables SAVE button until "What did you change" filled.

<script type="text/javascript">
AJS.toInit(function() {
var buttonID = 'rte-button-publish';
var textID = 'versionComment';

if(AJS.$('#' + buttonID).length > 0 && AJS.$("#" + textID).length > 0) {
        //Disable save button
        AJS.$('#' + buttonID).prop('disabled', true);

        //If the text box changes and there is content re-enable the save button
        AJS.$("#" + textID).keyup(function() {
            if(AJS.$(this).val() !== '') {
                AJS.$('#' + buttonID).prop('disabled', false);
            } else {
                AJS.$('#' + buttonID).prop('disabled', true);
            }
        });
    }
});
</script>

  

cmac
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 13, 2018

marked as answer. Thanks @Tansu Akdeniz

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events