Forums

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

validate custom field in the screen

fabio marcelo
Contributor
December 13, 2011

Hi all

It will be possible validate a custom field that is showed in a screen ?

For example:

When the developer finish the implementation he click in the button implement and is showed the screen with this custom field.

This custom filed can have value 'Yes' or 'No'

I would like that if the developer fill the custom field with the value 'No' , was showed a message to him informing that this value cannot be accept for this transition. It will be possible

Thanks in Advance

Best Regards

Fabio

1 answer

0 votes
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.
December 13, 2011

You can do it with javascript (although if the user is determined, that's quite easy to bypass)

The "correct" way to do it would be to write workflow validator that will perform the check and return a "you can't do this because" message to the user.

However, I'd actually question what you've presented - if the user always has to put in a "yes", then why do you bother offering it to them? The don't need to fill it in at all, because to pass the transition, they always have to say "yes". So you might aw well leave it off and assume a "yes" from the status, or use a post-function to flip it into a "yes" when the user performs the transtion. I'm guessing your business logic is a little more complex than this though?

fabio marcelo
Contributor
December 14, 2011

Hi Nic ,

You are right. I did this that you said . In the transition I put a post function that set the custom field Implemented to Yes , and it worked .

Thanks a lot

Best Regards

Fabio

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events