Skip to main content
daniel-strmecki
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
Mar 24, 2025 1:43 PM UTC
Solved

New CF Editor Custom Validation

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.
AlbinIs1Accepted solution
Community Advisor
Mar 31, 2025 1:18 PM UTC

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/

4 replies

Community Advisor
Mar 26, 2025 1:09 PM UTC

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

Translate
daniel-strmecki
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
Mar 27, 2025 10:22 PM UTC

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?

 

Translate
AlbinIs1Community AdvisorAccepted solution
Community Advisor
Mar 31, 2025 1:18 PM UTC

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/

Translate