Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Remove value "None" from Custom Select Field

Deleted user March 28, 2018

Even after setting the custom field to required, I still see the None option to get selected. How to Get rid of it? Thanks

4 answers

0 votes
Jay Kantaria
Contributor
December 3, 2018

Only thing is... this does not work well in cascading select custom filed.  If you select parent value ABC.... child field still stays at NONE and you can submit when entire field should be mandatory/required.    Go figure...

0 votes
Deleted user March 28, 2018

i had a workaround for it. I've created a value called as Default and any issuetype that doesn't link to that field can be adjusted to value Default their. Thanks everyone for your valuable suggestions. 

0 votes
Joe Pitt
Community Champion
March 28, 2018

Give them an option of N/A

0 votes
Max Foerster - K15t
Community Champion
March 28, 2018

Hi Thrinay,

can you provide some more information about the field and the setup? Because if you set a field required in the field configuration it will definitely not be possible to select (and save) "None" as value.

Best, Max

Deleted user March 28, 2018

I wasn't referring to select and save a None value. All I see is None value being shown when a field is set to required. 

 

A small description of my use case:

1) I want a custom field that should be set to required, just so that it forces the user to select a value their.

2) The user can also select a Value None and can be able to save it. 

 

How would you think that it can be resolved?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 28, 2018

"None" means "empty".  Empty is what the "mandatory" flag is there to prevent.

You can't set a mandatory field to "none" because that is what mandatory does NOT mean.

To allow your users to select "none", make the field optional.

If you mean you want to force your users to change a value, then you'll need a validator to check the entered data on a transition has changed from the previous value.  You'll need some code for that.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events