I solved it with some hints from Alexander Grein (only client-side). With jQuery I placed a custom hidden field into the form, which I gave a required attribute. According to my own validation rules I set this field to true or false and can control the validation this way.