Validation to custom metadata Field | Community
Skip to main content
Level 3
October 31, 2023
Solved

Validation to custom metadata Field

  • October 31, 2023
  • 3 replies
  • 735 views

Hello,

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

 

Thanks & Regards,
Vishal Jain

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 aanchal-sikka

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

3 replies

arunpatidar
Community Advisor
Community Advisor
October 31, 2023

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

Arun Patidar
aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
October 31, 2023

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

Aanchal Sikka
kautuk_sahni
Community Manager
Community Manager
November 1, 2023

@vishal33 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