Forms have always been a key part of the framework. Ever since the first version, forms have allowed developers to easily define input elements, render them, and process user submitted data. Nette 2.1 brings several new features and addresses number of issues and restrictions from previous versions.
This article covers most significant form improvements:
- new low-level access to form data,
- improved rendering using
- new features in the form validation.
In previous versions of Nette, all form fields had to be defined during form initialization. This is a great feature for strictly defined forms, e.g. a registration dialog, but it has been rather limiting when creating dynamic forms. The developer had to build the entire form when it was created, or create a custom control that handled the dynamic data.