Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.
SOLVED

Add validation to the path browser to choose either master or variations only on the experience fragment not the actual experience fragment.

Avatar

Level 3

Hello All,

We must perform validations on the path browser field to choose only the master or variations of the experience fragment.

 

Any thoughts here?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
3 Replies

Avatar

Correct answer by
Community Advisor

Avatar

Employee

@sateeshreddy Try creating a touch ui dialog listener and add your validations in the javascript. Please refer to coral ui documentation. 

https://developer.adobe.com/experience-manager/reference-materials/6-5/coral-ui/coralui3/index.html

Avatar

Community Advisor

@sateeshreddy ,

 

This validation is already built in the Core component library Experience Fragment component. Core Component's XF component allows only to select master or variation of the XF component.

https://github.com/adobe/aem-core-wcm-components/tree/main/content/src/content/jcr_root/apps/core/wc...

 

If you are looking for customizing a regular path browser to allow only XF master or variation paths, as other community members suggested, you need to write the validation using "cq.authoring" category client libs.