New CF Editor Custom Validation | Community
Skip to main content
daniel-strmecki
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
March 24, 2025
Solved

New CF Editor Custom Validation

  • March 24, 2025
  • 1 reply
  • 723 views

Hello,

has anyone developed a custom validation extension for the new CF editor? I don't want to create a custom field, just add validation to an OOTB field. I checked the docs but I don't see any API for validation available: https://developer.adobe.com/uix/docs/services/aem-cf-editor/api/

I have the following use-case: two multifields, if one contains X items, then the other one needs to contain X items or the validation should fail and show an error to the editor.

 

Thanks,

Daniel

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by AlbinIs1

Hi @daniel-strmecki 

I'm not sure if there are alternative approaches, but validation can be enabled directly within the same React extension used for the fields.


Regards
Albin
https://myprofile.albinsblog.com/

1 reply

Community Advisor
March 26, 2025

Hi @daniel-strmecki

I was exploring multifield support in the new Content Fragment Editor, and the details are captured in this post. You should be able to extend it based on your use case, including support for validation.- https://medium.com/tech-learnings/aem-cloud-service-composite-multifield-in-content-fragments-editor-new-editor-8021bf11f8b6?sk=9c680ac41b3771481cfc6a7545a8c66a

Regards

Albin

My Profile - Albin Issac

daniel-strmecki
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
March 27, 2025

Hi @albinis1,

thanks for sharing. I read your post, but you are adding a custom multifield, which is not something I want to do. I only want to add custom validation to an OOTB multfifield. Is there an extension point available to just add custom validation?

 

AlbinIs1Community AdvisorAccepted solution
Community Advisor
March 31, 2025

Hi @daniel-strmecki 

I'm not sure if there are alternative approaches, but validation can be enabled directly within the same React extension used for the fields.


Regards
Albin
https://myprofile.albinsblog.com/