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
Make "Steps To Reproduce" required
Moderators: Developer, Contributor
Re: Make "Steps To Reproduce" required
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
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
Thanks for the reply. I'll look into these - was kind of hoping someone might already have a plugin floating around for thisatrol 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