We have a Visualforce page that uses standard pageBlockSections and inputFields. This page has a lot of dynamic rerendering of pageBlockSections based on fields. Up until now, all of the fields have been optional. Now we have a request to essentially make every field required.
Running some tests, it seems to work out that requiring the field on the VF page when it isn't rendered ignores the validation (which is good), however our bigger problem is that when we answer a question that should trigger a rerendering of the form, it requires ALL of our required fields to be filled out before the page will submit to the rerender.
Are there any ways around this, i.e. a setting to disable required until the form is legitimately being submitted. I've tossed around the idea of validating via Javascript (not something I want to do, there's easily hundreds of fields of all different types). Additionally, it is possible we could try to refactor our rerendering to be a bit more targeted in terms of what gets rerendered, but I'm not sure that would completely solve our situation. We currently rerender the entire pageBlock because there are so many pageBlockSections/fields that we didn't want to overlook one with targetted rerendering.