I thought I would give you a way to handle multiple submits in a form. Lets say you have a form that should be filled by both students and ordinary attendees. There are some fields that are specific to the students like name of school and name of education and for the attendee we might have fields like title and name of company. When they make the submit we want to make sure all required fields are filled, but only the required fields for that kind of person.
First of all the person should make a decision if he is a student or an attendee, the form could look like this.
When the person clicks one of the buttons a field named listener is set to Attendee or Student. This decides which fields (or sections) that are displayed on the form. To handle the submit and validation of fields I have two submit buttons that looks the same but have different rules applied to them. They are both hidden if listener is blank or is set to the other buttons value.
Here is how it looks in design mode where both submit buttons can be seen and you also can see the message that is thrown if not all required fields are filled.
I think it’s a pretty easy way to accomplish what I was looking for and should be pretty simple for any one to use as well.