I've setup a form with Visual Form Builder. The form allows the visitor to register for a class. I want to add a functionality so that form checks the condition before submitting the form if all seats of the class are filled and displays the error that there is no more seat available. I know PHP and WordPress development but couldn't figure out how to do it. Any help will be appreciated.