The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Need to add Validator in JSD Form

Amit Shaw
August 17, 2023

Hi Team, 

We have one JSD project and under that project form we have more than 50+ custom field and all the custom field is hidden at first but with the selection of one custom field the other custom field will visible. 

So, Most of the custom field is single select custom field with YES/NO Value. So I need a validator so that if any one is selecting value as NO then he/she will not able to create the ticket under that form. 

They will get a error while submitting the ticket that "Form Pre-Requisites Not Met"

Is there anything we can do ? 

Need your help of guidance to resolve this one asap. 

Regards, 

Amit

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Sebastian Krzewiński
Community Champion
August 17, 2023

Hi @Amit Shaw 

How did you solve fields visibility on forms? By add-on? If yes, maybe this add-on have ability to make fields mandatory.

In the past I used Script runner to achieve that but error message wasn't so good and make lot of confusion for the users.

By default, JSM don't provide something like that (conditions for mandatory fields).

Regards,

Seba 

Amit Shaw
August 18, 2023

Hi Seba, We are adding visibility through Scriptrunner behaviors only. 

DEPLOYMENT TYPE
SERVER
VERSION
4.20.10
TAGS
AUG Leaders

Atlassian Community Events