Thank you.
After I submit the form, I encountered problem. I opened LFForms event log, it states:
Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: An unexpected error has occurred. [LFF502-UnexpectedError]
Inner exception: System.AggregateException
Message: One or more errors occurred.
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body)
at Laserfiche.Forms.CommonUtils.FormsValidation.FormValidator.FormValidator`1.Validate()
at E_Forms.Models.ViewModels.Form.Submit.ValidateForm(HttpRequestBase request, cf_forms form, Dictionary`2 Lookupdata, Dictionary`2 formdata, Dictionary`2 FieldsToIgnore, NameValueCollection formFields)
at E_Forms.Models.ViewModels.Form.Submit.RetrieveDataFromForm(HttpRequestBase request, Dictionary`2 formdata, Boolean SaveAll)
at E_Forms.Controllers.FormController.Submit(FormCollection collection)
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
Inner exception: Jint.Parser.ParserException
Message: Line 1: Unexpected token ILLEGAL
at Jint.Parser.JavaScriptParser.ThrowError(Token token, String messageFormat, Object[] arguments)
at Jint.Parser.JavaScriptParser.GetEscapedIdentifier()
at Jint.Parser.JavaScriptParser.ScanIdentifier()
at Jint.Parser.JavaScriptParser.Advance()
at Jint.Parser.JavaScriptParser.Lex()
at Jint.Parser.JavaScriptParser.ParseGroupExpression()
at Jint.Parser.JavaScriptParser.ParsePrimaryExpression()
at Jint.Parser.JavaScriptParser.ParseLeftHandSideExpressionAllowCall()
at Jint.Parser.JavaScriptParser.ParsePostfixExpression()
at Jint.Parser.JavaScriptParser.ParseUnaryExpression()
at Jint.Parser.JavaScriptParser.ParseBinaryExpression()
at Jint.Parser.JavaScriptParser.ParseConditionalExpression()
at Jint.Parser.JavaScriptParser.ParseAssignmentExpression()
at Jint.Parser.JavaScriptParser.ParseAssignmentExpression()
at Jint.Parser.JavaScriptParser.ParseExpression()
at Jint.Parser.JavaScriptParser.ParseStatement()
at Jint.Parser.JavaScriptParser.ParseSourceElements()
at Jint.Parser.JavaScriptParser.Parse(String code, ParserOptions options)
at Jint.Engine.Execute(String source)
at Laserfiche.Forms.CommonUtils.FormsValidation.FieldValidators.CustomRegex.IsValid(Object value, ValidationContext validationContext)
at System.ComponentModel.DataAnnotations.Validator.TryValidate(Object value, ValidationContext validationContext, ValidationAttribute attribute, ValidationError& validationError)
at System.ComponentModel.DataAnnotations.Validator.GetValidationErrors(Object value, ValidationContext validationContext, IEnumerable`1 attributes, Boolean breakOnFirstError)
at System.ComponentModel.DataAnnotations.Validator.GetObjectPropertyValidationErrors(Object instance, ValidationContext validationContext, Boolean validateAllProperties, Boolean breakOnFirstError)
at System.ComponentModel.DataAnnotations.Validator.GetObjectValidationErrors(Object instance, ValidationContext validationContext, Boolean validateAllProperties, Boolean breakOnFirstError)
at System.ComponentModel.DataAnnotations.Validator.TryValidateObject(Object instance, ValidationContext validationContext, ICollection`1 validationResults, Boolean validateAllProperties)
at Laserfiche.Forms.CommonUtils.FormsValidation.FieldValidators.FormField.Validate()
at Laserfiche.Forms.CommonUtils.FormsValidation.FormValidator.FormValidator`1.<Validate>b__8_0(KeyValuePair`2 field)
at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.<PartitionerForEachWorker>b__30()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass11.<ExecuteSelfReplicating>b__10(Object param0)