New form and validation classes introduced in AnsPress 4.1.0

For this release we have decided to improve existing functionalities rather than adding new ones. We noticed that the developers were facing lots of problems adding new fields. There has not been much improvement in the AnsPress form and validation since the release of version 2.0.

While improving forms and validations, we were taking care of certain things:

  1. Adding custom fields to the AnsPress form.
  2. Adding child fields.
  3. Validating and sanitation of fields.
  4. Letting the developers add their own field types.

But we felt that editing existing form class will be confusing as it was not well commented. So, we decided to go with a new class. Old classes files were completely removed from core. Form source and methods can be found here: AnsPress\Form.

 

Read form and validation API docs here: AnsPress form and validation API.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment