2

Updated:

I have added field validations to multi list field to select items from the data source, validation works fine in the content editor. But In Experience editor, validation error message keeps popping-up and unable to update field value.

To replicate issue, please find below steps:
1. Create Template with Multi List field (having data source items to select)
2. Add Validation to Multi List field : I have used custom regular expression (^({[^}]+}[|]{[^}]+}[|]?){1,3}$) with validation text Similar to this

enter image description here

Open experience editor to render field components accordingly:

  1. Try to add/remove multi list items and update save.
  2. Error message is popping-up all the time though and unable to update field value from experience editor

enter image description here

I'm using Sitecore 8.2 u3 | Validations are not working properly, error messages are shown though and unable to update field value to make it valid in Experience editor. I have tried in multiple browsers, facing the same issue.

Please let me know if anybody got expertise on these issues, add comments if need any further info.

  • what version of Sitecore do you have? – Vlad Iobagiu Aug 9 '17 at 6:38
  • @SitecoreClimber: I'm using 8.2u3. – Siva Sankar Aug 9 '17 at 10:41
1

Sitecore has reported this issue as BUG and provided workaround fix as below.

Fix:
comment out the following processor in your 'App_Config\sitecore.config' file:

"processor mode="on" type="Sitecore.Shell.Applications.ContentManager.ReturnFieldEditorValues.RegexValidate"


The Sitecore.Shell.Applications.ContentManager.ReturnFieldEditorValues.RegexValidate processor is a part of the uiReturnFieldEditorValues pipeline. The RegexValidate processor must check fields with a regular expression validation when you click the Ok button in your Edit Form. If the result is invalid, a pop-up with the validation message will appear.

So in this case multi-list field will not be validated when you will edit multi-list field in Experience Editor and click OK button. But will be validated when you will click on Save button, and an error message will appear if any field does not meet the regular expression.

For future reference, Please reach out to Sitecore with #49573.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.