Change color of a button based on validation

Certified Senior Developer

Hey Community,

I have a scenario, that is in an interface I have two buttons, one for going to next page(Continue) and one in the interface for performing some action(Add Items), Intially in my interface i have an editable grid with some values, In that editable grid there is a column callaed category if any of the row doesn't hold category value then when clicking on continue it should show the  validation on the interface with button(Add Items) color changed to destructive, Both these  actions should be happened only when we click on continue button.Is this scenario possible.

Thanks In Advance!!

  Discussion posts and replies are publicly visible