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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

CQ 5.6.1 pathfield regex not working


Level 2



I followed this article to create a custom component, when I choose the path and click ok button, i receive the error below in js console

widgets.js:86155 Uncaught TypeError: this.regex.test is not a function

Is regex supported for pathfield?



0 Replies


Level 2

I am a newbie in CQ, is it a known issue in 5.6.1?


Any hints would be appreciated. 





Can you please share with us what regex are you using.

If the syntax of your regex seems to use forward slashes (/)  my guess is you should escape them twice like this: '\\/' instead of '/'. 

Reference link:-


If the problem coming from a field in dialog tab, then it is known bug in 5.6.1 Link:-

I hope this would help you.