we are using bugzilla 4.4 in various projects as a ticket management system. Users can create requests for different products and components. Doing this The have to fill custom forms to provide the information needed to process the requests. Some of these forms contain custom fields implemented as drop down lists. These drop down lists are mandatory to fill out. Unformtunately we do not know how to define empty (or invalid) default values for the drop down lists so that users have to choose a correct entry. By now there is a valid default value which has the effect that users don't care for this field since tickets can be created without choosing a value here so that
90% of the tickets are created with the default values which is not desired.
Thanks for help,
Research and Technology Center
CT RTC BAM KMR-DE
81739 München, Deutschland
Tel.: +49 89 636-633785
Mobil: +49 152 54914768
Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Gerhard Cromme; Vorstand: Joe Kaeser, Vorsitzender; Roland Busch, Lisa Davis, Klaus Helmrich, Janina Kugel, Siegfried Russwurm, Ralf P. Thomas; Sitz der Gesellschaft: Berlin und München, Deutschland; Registergericht: Berlin Charlottenburg, HRB 12300, München, HRB 6684; WEEE-Reg.-Nr. DE 23691322
Thanks for the quick answer. We have the --- option too but for some reason users can create tickets without changing from --- to a valid value although the drop down field is mandatory. On the other hand whenever I comment a bug I get an error in case that --- is selected in the box which tells me that I have to select a value in this box.
Von: support-bugzilla [mailto:support-bugzilla-bounces+christian.kleegrewe=[hidden email]] Im Auftrag von Thorsten Schöning
Gesendet: Freitag, 20. November 2015 17:32
An: [hidden email] Betreff: Re: empty default value in drop down lists
Guten Tag Kleegrewe, Christian,
am Freitag, 20. November 2015 um 16:53 schrieben Sie:
> These drop
> down lists are mandatory to fill out. Unformtunately we do not know
> how to define empty (or invalid) default values for the drop down
> lists so that users have to choose a correct entry.
My Bugzilla 5.0 provides a default value of "---" in such cases, which can't be deleted and is initially shown. Don't know if this was new with 5.0 or if you have changed some field valued or such, but you should be able to test this easily yourself on landfill:
On 20/11/15 17:24, Kleegrewe, Christian wrote:
> Thanks for the quick answer. We have the --- option too but for some
> reason users can create tickets without changing from --- to a valid
> value although the drop down field is mandatory. On the other hand
IIRC, the "---" value is not special; it's just a value, so it's a valid
value in any situation.
> whenever I comment a bug I get an error in case that --- is selected
> in the box which tells me that I have to select a value in this box.
I suspect this is a customization that your site has made; I'm fairly
sure Bugzilla doesn't do this by default.
If you want "---" not to be allowed on bug filing, the simplest thing is
would be to create a small extension which handles the
bug_check_can_change_field hook and disallows setting the field to that