Regular Expressions in Form Fields

I'm trying to add a field to the 'Invitation Request' form. The filed needs to meet the regular expression
^(01)[0-9]{9}$
I've tried many times to create the filed using the 'Developer' module but every time I try to fill in the field with a sample number like 01234567890, I receive an error that the string does not meet the regular expression.
any idea what is going on? how to make sure the regular expression works correctly? any area in the code to check?

  • 213
  • More
Replies (3)
    • Hello SehaSky !

      I tested your example, it works well from my side. The only recommendation to check - did you add open and close # symbols for your regular expression? The ready for the insert to "Expression" parameter line will have the following view:

      #^(01)[0-9]{9}$#

      • Thanks a lot for your help.

        The expression works fine now, however, the whole form does not submit. It returns a client side error '503 Service Unavailable'. When I disable the field, the form works fine. Any idea where I should be looking for debugging? Do I need to add the phone number filed anywhere else beside the 'Invitation Request' form? 

        • Please provide me your UNA studio access via Messenger, because 503 error may have many possible reasons.

          Login or Join to comment.