Good morning all,
I am new to adding custom validators for JMWE. I would like to add a validator that does 2 checks
1. If the customer request type = "New user application" - if this is true then (2)
2. Does email address field contain "@"
I have tried the following but it seems to only evaluate one statement & not both. So the validator is being applied to all request types & not just new user applications.
issue.get("Customer Request Type")?.name == "New user application" && issue.get("Email address").contains ('@')
Any assistance would be appreciate!
the correct script in that case is:
issue.get("Customer Request Type")?.name != "New user application" || issue.get("Email address").contains ('@')
which means:
- either the customer request type is not "New user application" (in which case the validator should pass)
- or if the customer request type is "New user application", then if the Email address contains @ the validator passes, else it fails
Thank you for your feedback! This makes sense :) I have implemented and tested - all seems to be working as expected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.