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

chx’s picture

Well, if you empty out $_POST then sure.

coltrane’s picture

Work 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.

coltrane’s picture

Set #272710: Reset to Defaults button passes data through for validation as a duplicate of this (though it's the earlier issue).

chx’s picture

Status: Active » Closed (duplicate)