Active
Project:
Views Hacks
Version:
6.x-1.x-dev
Component:
Views Filters Auto-submit
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2011 at 22:36 UTC
Updated:
22 Feb 2011 at 19:47 UTC
This line effectively prevents a Submit button from being rendered in HTML:
$form['submit']['#access'] = FALSE;
This is an accessibility problem as well as making the form inoperable for those without Javascript. Instead, we should use jQuery to hide the submit element when page is loaded.
Comments
Comment #1
Everett Zufelt commented@Les Lim
Can you please give a bit more background about the problem, including a bit more of an explanation of the accessibility problem?
Comment #2
les limSure. My concern is that low-vision users are expecting to encounter a way to submit the exposed form and won't find one. Setting an auto-submitting filter doesn't give non-visual feedback to users that their search results have already been filtered, and then doesn't provide an interface item to execute the filters, even though they will have already been applied. I suppose I'm not actually sure if that's really an accessibility problem or not.
Meanwhile, if you happen to be browsing without Javascript, the filters won't be automatically executed and there will be no way to submit manually. That's a problem for all users.
Comment #3
Everett Zufelt commentedAgreed on both points.
Comment #4
sebas5384 commentedIf you remove the submit button this happen.
http://drupal.org/node/1057836
Comment #5
infojunkieFixed in the latest dev (CVS commit). I simply moved the submit-hiding code to JavaScript. Please try it (12 hours from now) and let me know.
Comment #6
scotjam commentedIn a future release, could this option be made into an admin setting?
best wishes
scotjam
Comment #7
infojunkieRe #6: Sure.