SOLVED

Canvas App Form - Regular Expression for Custom Requirements

Deleted
Not applicable

I am building a canvas app and one screen has a form to submit a request, which saves data to a SP list.  I have a form field that requires additional validation beyond being a required fields.  

Starts with "OPX" + "-" + 10 numbers

This needs to throw an error if the first 3 characters are NOT "OPX".  There must be a hyphen next, then 10 numbers.  Any recommendations are greatly appreciated.

1 Reply
best response
Solution

This happens occasionally after posting, that I immediately solve the issue.  Here is the solution:

 

!IsMatch( DataCardValue3_1.Text, "OPX" & Hyphen & Digit & Digit & Digit & Digit & Digit & Digit & Digit & Digit & Digit & Digit )

 

 

1 best response

Accepted Solutions
best response
Solution

This happens occasionally after posting, that I immediately solve the issue.  Here is the solution:

 

!IsMatch( DataCardValue3_1.Text, "OPX" & Hyphen & Digit & Digit & Digit & Digit & Digit & Digit & Digit & Digit & Digit & Digit )

 

 

View solution in original post