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

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. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
4.20.10
TAGS
AUG Leaders

Atlassian Community Events