Károly Négyesi: Drupal 7 multistep node forms are easy
The bane of multistep node forms are validation errors. But Drupal 7 has a cure. Not nice but a cure.
Slap #access = FALSE on form elements you dont want to see in the current step and then set up the Next button with #limit_validation_errors set to the elements you are about to see. The Prev button should get an empty #limit_validation_errors. Should field validation errors bother you, you can nuke those in hook_field_attach_validate.
<?php
define('MYMODULE_STORY_NODE_FORM_LAST_STEP', 2);
- سَجل الدخـول لإرسَــال تـَعلـيق.
- Feed: drupal.org aggregator
- اقراءالمصدر
مـواضـيـع ذات صـلـة
- Growing Venture Solutions: Drupal 7 multistep forms
- Growing Venture Solutions: Drupal 7 multistep forms using variable functions
- Trellon.com: 20 APIs in 20 Days: The Forms API
- Appnovation Technologies: A few points about form validation
- James Tombs: Adding additional form elements using ahah_helper in Drupal 6
- Drupal Connect: Drupal Ajax Form Validation

