Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Validation to custom metadata Field

Avatar

Level 3

Hello,

I have added a custom metadata field, please help me to add a validation (Regex) function to only this field.

Screenshot (25).png

 

Thanks & Regards,
Vishal Jain

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Vishal_Jain03 Please refer to this blog https://medium.com/@theopendle/aem-custom-metadata-forms-for-assets-8c6597205f9d (Section: Applying validation to form fields)


Aanchal Sikka

View solution in original post

3 Replies

Avatar

Community Advisor

Hi @Vishal_Jain03 
You have to write an custom javascript and perform check on save.



Arun Patidar

Avatar

Correct answer by
Community Advisor

@Vishal_Jain03 Please refer to this blog https://medium.com/@theopendle/aem-custom-metadata-forms-for-assets-8c6597205f9d (Section: Applying validation to form fields)


Aanchal Sikka

Avatar

Administrator

@Vishal_Jain03 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni