Forums

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

Using Regular Expression Check as a validator in Workflow transition

Michelle Gronwold
Contributor
January 4, 2023

Question, I have a single line text field called "Activity Rationale". I created a validator in a workflow transition to verify the text entered in this field is in a range of 1-200 characters long (below). But it is not working. Even if I enter just a couple of words in this field I will get the error message below. Is it because it is a text field that allows spaces? I'm stumped.

Regular Expression Check (JSU)

  • Field to be checked: Activity Rationale
  • Regular expression: ^[*]{1,200}$
  • Concatenate multiple values: false
  • Split on newline characters: false
  • Error message (optional): Activity Rationale field is limited to 200 characters

1 answer

1 accepted

1 vote
Answer accepted
Vamsi Kandala
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 4, 2023

Hi @Michelle Gronwold

Can you check and try this?

^.{1,200}$

Hope this helps.

Thanks,
Vamsi

Michelle Gronwold
Contributor
January 4, 2023

Yes!! That worked! Thank you so much

Vamsi Kandala
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 4, 2023

Hi @Michelle Gronwold

Sounds good.

Thanks,
Vamsi

Like Michelle Gronwold likes this

Suggest an answer

Log in or Sign up to answer