November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Hi Zach
From what you describe it seems ToRawString might have a bug in serializing validator models. Cause it looks like the Editor UI can properly serialize it, but the API cannot (using the default ToString() method). You might want to submit a bug report to Support.
Hello,
I have a tool on a site I am working on that creates forms based on an existing page. One thing I am struggling with is how to programmatically add a regex validation to a text area. The following code works but it is hacky:
The problem I'm having is with
_validationService.ToRawString(...)
, it should produce the string: "EPiServer.Forms.Implementation.Validation.RegularExpressionValidator###^\w{1,10}$" but instead it creates the string "EPiServer.Forms.Implementation.Validation.RegularExpressionValidator###EPiServer.Forms.Core.Validation.Internal.RegularExpressionValidationModel" which is why I append my regex string manually.Is there a more kosher way to do this?