Metadata custom validation - Save button not getting disabled | Community
Skip to main content
Kiran_Vedantam
Community Advisor
Community Advisor
May 25, 2021

Metadata custom validation - Save button not getting disabled

  • May 25, 2021
  • 1 reply
  • 1736 views

I have followed the below-mentioned URL and worked on the custom validation on metadata schema. Once the error is shown, the metadata is getting saved even there is an error. Can someone please suggest if there is something missing?

https://medium.com/@theopendle/aem-custom-metadata-forms-for-assets-8c6597205f9d

 

Note: I have worked on the "Applying validations to form fields" section.

 

@theopendle 

 

Thanks,

Kiran Vedantam.

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

1 reply

Vijayalakshmi_S
Level 10
May 25, 2021

Hi @kiran_vedantam,

I tried in my local - AEM 6.5.0 and it works fine. 

Could you please let know

  • If you are getting the validation message upon "Save & Close" CTA (This wont grey out/be in disabled state but stopsPropogation) in addition to the error message that we set as part of validate function(that displays near the respective field)
  • Instance details in which you are trying this.
Kiran_Vedantam
Community Advisor
Community Advisor
May 26, 2021
When I click the save button, it is getting saved. This is working fine at page properties level, but not working at metadata level