Adding regex validation to pathfield - AEM 6.4

Avatar

Avatar
Validate 1
Level 2
ashishkhadpe
Level 2

Likes

4 likes

Total Posts

50 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
ashishkhadpe
Level 2

Likes

4 likes

Total Posts

50 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Boost 3
Boost 1
View profile
ashishkhadpe
Level 2

17-09-2020

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? 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
santhosh_kumark
MVP

Likes

99 likes

Total Posts

111 posts

Correct reply

38 solutions
Top badges earned
Establish
Validate 1
Give Back 3
Give Back
Boost 50
View profile

Avatar
Establish
MVP
santhosh_kumark
MVP

Likes

99 likes

Total Posts

111 posts

Correct reply

38 solutions
Top badges earned
Establish
Validate 1
Give Back 3
Give Back
Boost 50
View profile
santhosh_kumark
MVP

17-09-2020

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

 

Answers (0)