View Issue Details

IDProjectCategoryView StatusLast Update
0004610mantisbtfeaturepublic2010-09-28 20:31
Reportercodemastr Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status acknowledgedResolutionopen 
Product Version0.19.0 
Summary0004610: Set which fields are advanced, and which are required
Description

There are two things that really get on my nerves with Mantis. The first is the fact that some fields are not displayed on the simple report form.

I get really annoyed when someone uses the simple form, and as a result, I don't get notified of their OS because the simple form does not have an OS field. I'd like to be able to specify which fields get displayed on the simple form, and which are advanced-only.

The second one relates to this, I want to be able to define whether something is required. This goes for both builtin fields, as well as custom fields. Again, it makes things harder for me when people don't specify an OS, so not only would I want to be able to put this field on the simple form, I'd want it to be required.

Tagsredesign

Activities

vboctor

vboctor

2004-09-28 06:32

manager   ~0007783

With regards to the required for native fields, you need to override the "issue_create_validate" custom function. See http://manual.mantisbt.org/manual.customizing.mantis.custom.functions.php for more details on custom functions.

To make custom fields mandatory you can use minimum length or regular expressions.

codemastr

codemastr

2004-09-28 14:51

reporter   ~0007814

Well yeah, I figured I could do it by changing that function, but imho there should be some configuration option for this. Plus, there is more to it than what you suggested. For example, that won't show the red * next to required fields.

vboctor

vboctor

2004-09-28 17:23

manager   ~0007818

You are right. For deciding what fields are simple/advanced we need templates or config options. Mandatory fields also have to be configured, or specified as part of the template via hidden fields.

stevemagruder

stevemagruder

2004-09-29 11:06

reporter   ~0007828

It also seems to me that some kind of config options should be provided such that an admin could easily declare some of the advanced fields to also appear on the simple page.

One possible workaround would be to create a custom OS field that's required, and this can currently be done with custom fields (per codemastr's second request). But then, this would duplicate the field on the advanced page--which reminds me--it would be nice to set some projects not to allow access to the Advanced entry page.

codemastr

codemastr

2004-09-29 12:31

reporter   ~0007832

which reminds me--it would be nice to set some projects not to allow access to the Advanced entry page.

Or to define ones that must use the advanced page.