silverstripe/silverstripe-userforms — pull request #191 by kmayo-ss (2014-02-21 01:34:27+00:00)
Title: NEW: Add a check + error message if input vars is exceded

This pull request just adds a check and error message to see if the number of $_REQUEST variables excedes the number of max_input_vars set for PHP.
Tested by creating a large userform in the admin error and seeing the error produced when trying to add another field.

It is also worth considering that the userforms module will not be able to create a front end form that gets close to exceeding the maximum number of input variables due to the cms/framework overhead and the form fields used for the options, this is not a bad thing as it is a bad user experience to have a massive form to fill out, but a future enhancement may be to split or create large forms into smaller sections so for example a form with 30 input fields could be split over 3 form pages of 10 input each with a final confirmation submission.