There are many components in my interface, and each component has their own validations. I want to implement a require like if any validation is triggered, the submit button should be disable. Is there any easy way I can achieve that? Or I can only write all the validations again in disable.
Discussion posts and replies are publicly visible
Create one expression rule with all validations that returns a dictionary/map of errors. Use it in both component validations (accessing specific fields) and button disabled (checking if any errors exist). This gives you single source of truth for all validation logic - no duplication, easy maintenance.