Forums

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

How to make a field required based on the value selection of another field

Vineela Durbha
Contributor
May 4, 2022

Hi,

I am trying to make a field required based on the value of another field(select list). But the thing is that the select list field is not present on the screen.can we still make this scenario work? I have tried with field required validators and it doesn't seem to work .

Any help on this is appreciated

2 answers

1 accepted

0 votes
Answer accepted
Will C
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.
May 6, 2022

You could get this to work for a behaviour, you would need this list to have a value already and then on the behaviour you would need to get the underlying issue and check the value of this field, which you can then set the other field to required.

0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 5, 2022

Hi @Vineela Durbha

Could you please provide a little more information, i.e. on which screen do you want to hide the Select List and make the second field required? Is it on a Transition screen or the Edit screen?

Also, if the Select List is hidden in that particular screen, you still may be able to get the value of the List, i.e. if the value of the select list matches your condition.

However, if the option that has been selected in the list does not match the condition to set the field to required, it will not be possible to change it.

Could you also please share the current Behaviour code that you are using?

Thank you and Kind regards,

Ram

Vineela Durbha
Contributor
May 5, 2022

@Ram Kumar Aravindakshan _Adaptavist_ 

I am not trying to hide any field here.i am just trying to make a field required based on the selection of another field. I am trying with field required validators 

My question is that will it work even if the first field is not present on the transition screen on which the other field is being made required based on the value of first field

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events