Created
June 28, 2017 15:06
-
-
Save anonymous/e9da0265ba43098a1dd1273ffab72906 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset form.Contract_Number = "5285632563JFDTHRUFGGTH"> | |
<cfset session.invoiceDataContr.errorString = ''> | |
<cfset errorMsg = ""> | |
<cfif NOT (refind("^[DdFfGgHhNnVv][A-Za-z0-9]{1,21}$", form.Contract_Number) or refind("^70Z0\d{4}[CDF]\d{8}$", form.Contract_Number))> | |
<cfset errorMsg = "The 5285 Contract Number is required and can contain no more than 22 alphanumeric characters.,"> | |
<CFELSE> | |
<CFSET ERRORmSG = "HELLO"> | |
</cfif> | |
<cfset session.invoiceDataContr.errorString = errorMsg> | |
<cfdump var="#session#"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment