Forums

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

Can the Locked Field be made required when a transition is made?

Eric Dunn June 6, 2019

I am trying to make the "account" Temp plugin field a required field when a transition is made. I used a field required validator to solve this problem. But the Account field drop-down menu also has "none" as one of the options. So, when a user selects "none" in the account field, the validator is failing. how do I solve this issue

2 answers

0 votes
Eric Dunn June 6, 2019

Hi Jack

Thanks for the reply I don't want to pass "none" in this field. But the drop down has "none" so user can select none. I don't want the user to select "none" when they transition the issue

0 votes
Jack Brickey
Community Champion
June 6, 2019

do you want "none" to be allowed during the transition? Field required views "none" as empty. If you want to allow "none" (seems odd to me if it is required) then you might try "field updated" validator? TBH, I don't know if it would pass on "none" being selected.

Jack Brickey
Community Champion
June 6, 2019

Eric, first some house keeping. use the "Reply" button to reply to someone in a thread and the "Answer" button to offer an answer to the original question that is different than other answers.

Now I suspect that you cannot remove the "none". However, as I think you stated if the user selects "none" they will not be allowed to transition, correct? If so then the user should quickly understand that they must choose an actual value.

Eric Dunn June 6, 2019

Ok Let me explain this with a scenario. "i am a user and i want to move an issue from To Do to In Progress. To make this transition i need to select the account in account field. I select "none" in the account field and click on In Progress button. Now my Issue is changed to In Progress. " 

According to my requirement I don't want the issue to be moved to in progress when the account field has "none" selected. I want an error message to pop up that says "account field should can not be 'none' ". or "please select a valid account". 

Jack Brickey
Community Champion
June 6, 2019

got it. so in short - "none" is treated as an acceptable value. So let me rewind a bit to your question of how to remove "none". Is the location field a custom field you added or is it a field that is associated w/ an addon? I expect the later because you mention in the original post "...make the "account" Temp plugin field...". I don't know of a Temp addon. Regardless, if we are dealing w/ a custom select/multi-select field then we can of course change the available values. If this is a field that is part of an addon maybe not.

One final suggestion to try. Add a condition to the transition using "Value field" and check that it is not equal to "none". Note, I'm thinking that this condition function may not be on server.

Suggest an answer

Log in or Sign up to answer