How to throw an error when all fields are not populated in a DB and user clicks a button
I have this table in this dashboard where a user needs to enter in these mandatory fields in order to save this data into a "history log", which is a separate module. How can i make it so that if all three of these fields are not entered in, when the user clicks the save button, it will throw an error? Right now I have a boolean in a view where if all three fields are not blank, save the data in the history log. My issue right now is, is that if there is one field populated and i run the action, it will say sucessful and it will show green checks but say nothing updated. I want it to throw an error. Any ideas on how to do that?