none
Does inputformregularExpressionfieldvalidator ErrorMessage support HTML markup ? RRS feed

  • Question

  • Hi,

      I just found something weird this morning. Does inputformregularExpressionfieldvalidator  Error Message support HTML markup? I just did some test betweeen ASP.NET RegularExpressionValidator and sharepoint inputformregularExpressionfieldvalidator, For both "ErrorMessage", I signed the value "&lt;b&gt;This is a bold Error Message&lt;/b&gt;". And only ASP.NET validation control shows the html text. inputformregularExpressionfieldvalidator  gives me <b>This is a bold Error Message</b>..

      Can anyone confirm this? Please correct me if I was wrong.

       Thank you


    Rui


    • Edited by R.Jiang Tuesday, September 25, 2012 10:09 PM
    Tuesday, September 25, 2012 10:06 PM

Answers

  • Hi R.Jiang,

    The scenario you have seen is the by default result of the regular expression validator in SharePoint, the error message is text with specific style.

    Thank,


    Qiao Wei

    TechNet Community Support

    Friday, September 28, 2012 9:18 AM
    Moderator