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