Let suppose we have one text custom field and this customfield should be in this format:
1111 **** **** 1111 - in such format, only first 4 digits and 4 last digits must be entered
How can I do this using validator?
Hi @Jamil Rahimov ,
I'm probably still struggling with the understanding of your use case, so could you please provide a couple of examples for valid inputs?
Assuming the requirement is
an expression matching this would be
@Thorsten Letschert _Decadis AG_ has the right expression from what I can see.
You could try this with ProForma Lite (free) by requiring users to match a regex pattern.
Here's what that looks like in the form builder:
I am on the ProForma team, but thought I'd share this in case it helps get you what you need.
You'll need a scripting app, or something that provides clever validators to do this.
There are several apps that provide regular expression validators, I'd reach for one of those first (unless you have a load of other needs that bigger apps like Scriptrunner or Powerscripts might help with as well as being able to provide such a validator)
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events