Is it possible to have Enumerations with no selection at first?

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
sachintha81
Posts: 20
Joined: 07 Mar 2019, 20:59

Is it possible to have Enumerations with no selection at first?

Post by sachintha81 »

In my bug tracker, I have a few Enumeration fields which must be 'required' entries when submitting an issue.

However, a custom Enumeration field asks for a set of possible values, and by default it's always set to the first value in the list. This is a problem since, if the user didn't select a value for that field, it will still be set to its initial value, and the submit form will not generate a warning for missing fields.

Is it possible to have Enumerations without a default value being selected, sort of like .NET Combo Boxes where if a value is not set, it won't have any selection?
sachintha81
Posts: 20
Joined: 07 Mar 2019, 20:59

Re: Is it possible to have Enumerations with no selection at first?

Post by sachintha81 »

Figured it out.

In the possible values list of an Enumeration, if you start with a '|', then it will not have anything selected by default, and will generate an error upon submitting.

To summarize:

A|B|C ==> Selects A by default.
|A|B|C| ==> Doesn't select anything by default.
Post Reply