Page 1 of 1

Make "Steps To Reproduce" required

Posted: 05 Jan 2018, 11:05
by RedSpider
Is there an easy way to make this a required field without hacking too much code? Don't like to code-edit since it means extra work when upgrading etc :)

thanks

Re: Make "Steps To Reproduce" required

Posted: 08 Jan 2018, 07:47
by atrol
You can write a plugin that uses some JavaScript to validate the field before it's submitted to the server (use HTML required attribute for it).
https://www.mantisbt.org/docs/master/en ... ev.plugins

You can write a custom validation function if it's enough to check at server side and to show an error message after it.
https://www.mantisbt.org/docs/master/en ... cs.example

Re: Make "Steps To Reproduce" required

Posted: 08 Jan 2018, 12:17
by RedSpider
atrol wrote:You can write a plugin that uses some JavaScript to validate the field before it's submitted to the server (use HTML required attribute for it).
https://www.mantisbt.org/docs/master/en ... ev.plugins

You can write a custom validation function if it's enough to check at server side and to show an error message after it.
https://www.mantisbt.org/docs/master/en ... cs.example
Thanks for the reply. I'll look into these - was kind of hoping someone might already have a plugin floating around for this :P