Add validation to the path browser to choose either master or variations only on the experience fragment not the actual experience fragment. | Community
Skip to main content
Level 3
September 8, 2023
Solved

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

  • September 8, 2023
  • 3 replies
  • 954 views

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?

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

3 replies

varun249715
Adobe Employee
Adobe Employee
September 8, 2023

@sateeshkreddy 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

Sudheer_Sundalam
Community Advisor
Community Advisor
September 8, 2023

@sateeshkreddy ,

 

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/wcm/components/experiencefragment/v1/experiencefragment

 

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.