Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Adding regex validation to pathfield - AEM 6.4

ashishkhadpe
Level 3
Level 3

Hi All,

 

We have migrated from classic UI to touch UI. In one of our component, we have added regex validation on pathfield as below in classic UI.

 

<fieldConfig
jcr:primaryType="nt:unstructured"
regex="/^(.*)\.pdf$/"
xtype="pathfield"/>

Any one know how I can get the regex added to my touch UI dialog? 

1 Accepted Solution
santhosh_kumark
Correct answer by
Community Advisor
Community Advisor

Hi @ashishkhadpe ,

 

granite:data node is used to add custom data attributes for touch ui dialog fields validations.

You can find it here http://aemlab.blogspot.com/2019/05/aem-touch-ui-component-dialog-field.html

 

View solution in original post

1 Reply
santhosh_kumark
Correct answer by
Community Advisor
Community Advisor

Hi @ashishkhadpe ,

 

granite:data node is used to add custom data attributes for touch ui dialog fields validations.

You can find it here http://aemlab.blogspot.com/2019/05/aem-touch-ui-component-dialog-field.html

 

View solution in original post