AEMaaCS - validation of components using globals | Community
Skip to main content
Level 9
May 17, 2024
Solved

AEMaaCS - validation of components using globals

  • May 17, 2024
  • 2 replies
  • 762 views

Using core components within AEM forms and I was trying to use the date before after for the date say end date, eg if end date is keyed in, it should be less than the start date but due to a bug that adobe has confirmed this would not work on core components. If I were to write a rule or rules how could I fail validation via script  to avoid moving to next panel or submit ?

globals.function.markasinvalid does not block submission 

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 sudhansh

@nitrohazedev Here is a reference for marking a field as invalid: https://github.com/adobe/aem-core-forms-components/pull/1356/files

 

Please note that - you would need to pick the latest core-components build - ver. 3.0.52 or greater for this support.

 

Thanks,

-Sudhanshu

2 replies

sudhansh
Adobe Employee
sudhanshAdobe EmployeeAccepted solution
Adobe Employee
August 27, 2024

@nitrohazedev Here is a reference for marking a field as invalid: https://github.com/adobe/aem-core-forms-components/pull/1356/files

 

Please note that - you would need to pick the latest core-components build - ver. 3.0.52 or greater for this support.

 

Thanks,

-Sudhanshu