Adding regex validation to pathfield - AEM 6.4 | Community
Skip to main content
ashishkhadpe
Level 3
September 17, 2020
Solved

Adding regex validation to pathfield - AEM 6.4

  • September 17, 2020
  • 1 reply
  • 2357 views

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? 

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

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

 

1 reply

santhosh_kumark
santhosh_kumarkAccepted solution
Level 6
September 17, 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