hi,
I would like to make the default field Target Version (target_version) mandatory. How can I do that?
thanks, udo
How to make default field mandatory
Moderators: Developer, Contributor
Re: How to make default field mandatory
You can write a custom functions for this
http://docs.mantisbt.org/master/en/admi ... USTOMFUNCS
http://docs.mantisbt.org/master/en/admi ... USTOMFUNCS
Re: How to make default field mandatory
I did not pursue this suggestion because I was not comfortable with such a "hack" for a default field. This configuration possibility should be provided "out of the box"...
Note: Don't get me wrong here. I appreciate the answer because it provides a workaround!
Will the user be able to identify this "pseudo mandatory field" before he submits the form?
Probably not -> So he will always see the error message... -> So he will return to previous page -> If he uses a modern browser, he will be lucky and still have the data available -> In case he uses some old school browser, his data will be lost and he will frustrated to re-enter the data... -> not good
Any solution for this?
Note: Don't get me wrong here. I appreciate the answer because it provides a workaround!
Will the user be able to identify this "pseudo mandatory field" before he submits the form?
Probably not -> So he will always see the error message... -> So he will return to previous page -> If he uses a modern browser, he will be lucky and still have the data available -> In case he uses some old school browser, his data will be lost and he will frustrated to re-enter the data... -> not good
Any solution for this?
Re: How to make default field mandatory
AFAIK there is no other solution than to change the source code.
This is a known feature request.
http://www.mantisbt.org/bugs/view.php?id=8941
This is a known feature request.
http://www.mantisbt.org/bugs/view.php?id=8941
Re: How to make default field mandatory
I would love to see some further advancement on this request too. This has become a great need on our install and I am not really interested in the idea of hacking the code to make this work when it seems like it should have been a feature out of the box.atrol wrote:AFAIK there is no other solution than to change the source code.
This is a known feature request.
http://www.mantisbt.org/bugs/view.php?id=8941
Re: How to make default field mandatory
Patches are welcome, you can fork MantisBT from https://www.github.com/mantisbt, develop the needed changes and send a pull request.spencerjw wrote: I would love to see some further advancement on this request too.
You don't have to hack the code, there is a clean solution where you don't have to change any existing code of MantisBTspencerjw wrote: This has become a great need on our install and I am not really interested in the idea of hacking the code to make this work
atrol wrote:You can write a custom functions for this
http://docs.mantisbt.org/master/en/admi ... USTOMFUNCS