In Page Property Dialog field Validation | Community
Skip to main content
Level 6
February 8, 2023
Solved

In Page Property Dialog field Validation

  • February 8, 2023
  • 2 replies
  • 857 views

In Page properties I have added 2 text field and 1 multifield(textfield)

 

For all these textfield I want one validation where it doesn't accept any symbols other than '-' and 'space'. How can I achieve this. What Js to be used.

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 Saravanan_Dharmaraj

please check the below blog for examples on how to set up validation in dialog.

https://aemlab.blogspot.com/2019/05/aem-touch-ui-component-dialog-field.html 

2 replies

Saravanan_Dharmaraj
Community Advisor
Saravanan_DharmarajCommunity AdvisorAccepted solution
Community Advisor
February 8, 2023

please check the below blog for examples on how to set up validation in dialog.

https://aemlab.blogspot.com/2019/05/aem-touch-ui-component-dialog-field.html 

ChitraMadan
Community Advisor
Community Advisor
February 8, 2023

Hi @ronnie09 ,

You can use Granite Validator for this purpose.

Please refer to the similar reply here - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-forms/text-field-content-limits/td-p/366507

Here, instead of checking word limit, you can match the word with your required regex and accordingly show an error.

Thanks,

Chitra