Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
forms system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2008 at 20:19 UTC
Updated:
13 Mar 2009 at 14:04 UTC
In Drupal 6 (for example) if you have a required text field on a form, there is now way for a button (for example 'Reset to defaults') to ignore that field even if the action to be taken does not sepend on any form inputs.
The proposed feature would allow a button to specify that the button submit handler should be executed with no validation. To minimize the security abuses this might invite, I propose that POST be emptied when this bypass is requested.
Comments
Comment #1
chx commentedWell, if you empty out $_POST then sure.
Comment #2
coltraneWork on this is happening at #370537: Allow suppress of form errors (hack to make "more" buttons work properly). I'm not clear if the patch there solves this globally or only for the poll module at the moment so I'm not closing this issue as a duplicate yet.
Comment #3
coltraneSet #272710: Reset to Defaults button passes data through for validation as a duplicate of this (though it's the earlier issue).
Comment #4
chx commented#370537: Allow suppress of form errors (hack to make "more" buttons work properly) is a generic issue.