Hi @yashp1196 ,
If not using SubmitForm to validate the form, you will have to set as many variables as the number of Data Cards, validate the form and determine whether navigating to the other screen on the Form's Valid property. If the Form is not valid, it means that there are empty fields in the form. Then Color of controls and Visible of error message Labels will change based on respective variables.
If(Form1.Valid, Navigate(Screen2),UpdateContext({DC1: DataCard1.Valid, DC2: DataCard2.Valid, DC3: DataCard3.Valid, ...})
Visible of error message Label in Data Card 1
!DC1
Data Card 2
!DC2
and so on.
BorderColor of DataCardValue1
If(DC1, Parent.BorderColor, Color.Red)
BorderColor of DataCardValue2
If(DC2, Parent.BorderColor, Color.Red)
and so on.
Best regards,