Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Regular expression validator in epi forms



if i use the regular expression validator on a text field in epi forms, I get an exception:

[FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.]
   System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args) +14723710
   System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args) +105
   System.String.Format(String format, Object arg0) +92

This happens only in the production environment, it works in stage and local.

I have made sure the modules folder, bin folder and web.config is the same. I can't see any custom validators. Any clue what could cause this?

May 29, 2018 8:26

Moved to Forms forum.

May 29, 2018 18:40


are you modifying the language file for Forms? Could you check if your site have xml language file contains:

	<displayname>Regular expression</displayname>
	<message>This field should be in "{0}" format.</message>
May 30, 2018 7:50

That was it - Thank you Dac Thach Ngyen! It turned out to be a problem with a forms language file that only excisted in production.

May 30, 2018 14:06
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.