Hi,

Currently indeed the change-note on a page-edit is an optional field.

It is not hard to make it a required field;  if you are ready to modify a
JSP.

Here is how:

1)
Open /templates/default/editors/plain.jsp

2)
Add a 'required' attribute to the CHANGENOTE input field

        <input class="form-control" type="text" name="changenote"
id="changenote" size="80" maxlength="80"
             placeholder="<fmt:message key='editor.plain.changenote'/>"
required
             value="${changenote}" />

3)
Add a 'formnovalidate' attribute to the CANCEL button of the editor.
(otherwise you cannot cancel the form without giving a 'bogus' change-note
:-) )

    <input class="btn btn-danger pull-right" type="submit" name="cancel"
accesskey="q"
           value="<fmt:message key='editor.plain.cancel.submit'/>"
           title="<fmt:message key='editor.plain.cancel.title'/>"
           formnovalidate />


Good luck !


Could you log a JIRA improvement request, so we can consider to make this a
JSPWIKI property.

Best regards,
   dirk







On Tue, Dec 10, 2019 at 2:40 PM Ulf Dittmer
<ulf.ditt...@googlemail.com.invalid> wrote:

> I would like to have an option to make a non-empty change comment
> mandatory! A quick search through jspwiki.properties comes up empty, so I
> don't think this is possible right now.
>
> Ulf
>
> On Tue, Dec 10, 2019 at 2:29 PM Col Willis <col.wil...@gmail.com> wrote:
>
> > It might be better to ensure a change note is mandatory for a given
> submit?
> >
> > Unsure if this is currently supported though?
> >
> >
> > On Tue, 10 Dec 2019, 13:23 Gardner, Mike, <mike.gard...@crowncastle.com
> > > wrote:
> >
> > > We have wiki users who often forget to add a Change Note despite
> repeated
> > > haranguings to please do so.  I've tired of being the school marm
> > wagging > my finger at them.
> > >
> > > How can we add or modify a Change Note after the fact?  I don't see a
> > way to do it in the UI.
> > >
> >
>

Reply via email to