Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is it possible to validate a custom field format on the customer portal

Hi,

I want to ensure that when a customer is entering data into a custom field, it is the right data type/format e.g. phone numbers should be numbers maybe with special characters like + and (), and email addresses in the right field; i'm currently using text fields.

Can you please tell me if this is something i can do in JSD.

Cheers,

Gee 

2 answers

Hi Gee, you need to apply behaviors to each field according to its type.

Behaviours JSD 

If you have not used it before look this Behaviours Tutorial, I recommend you start with basic validations such as

CF.isNumber() if you want to check if is a number. or CF.length to chek the number of characters in the field. Then for email you can try with Regexp to validate email.

Examples:

I hope it helps

Hi Manuel,

Thanks a lot for your response, based on your answer, i'm assuming i would need to get Scriptrunner. Just so you know that i'm not a developer. So i'm not sure i'll be able to write the scripts. Is there no way to carry out the validation in JSD and just to confirm I used 'Extension for JSD' to create the custom fields. 

Cheers,

Gee

@Gee Udobang 

 

I see that you have accepted an answer but I also wanted to flag another option for you.  You could use the regex feature with ProForma Lite, a marketplace app that builds fully integrated forms within Jira (up to a maximum of 3 form templates for free).

You can apply the regex formula in the form template as displayed below:

Regex.jpeg




It would appear on the portal as a normal question


Hope that helps as another option.  To be be transparent, I am from ProForma.


Regards

Kate

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

170 views 0 4
Read article

Community Events

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

Events near you