Last modified: 2013-12-27 13:52:27 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T36290, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34290 - [SF] Special:RunQuery needs a standard input to clear and reset the form
[SF] Special:RunQuery needs a standard input to clear and reset the form
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-09 07:36 UTC by badon
Modified: 2013-12-27 13:52 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description badon 2012-02-09 07:36:43 UTC
With SF 2.4, I just tried {{{standard input|cancel|label=Clear form}}} on a Special:RunQuery form, and discovered the button does not even display. The button would be useful for clearing a form for a user to start over, especially on large or complicated forms.

I was able to work around this shortcoming with the fullurl magic word and a very large query string to create a link that explicitly blanks all form parameters. Without the query string, some browsers will keep the data loaded in the fields.
Comment 1 Yaron Koren 2012-02-09 15:45:39 UTC
I assume you mean "reset", as opposed to "cancel".
Comment 2 badon 2012-02-09 17:48:37 UTC
Now that I think about it, it would be better to create new standard inputs that can be used on all forms, instead of just co-opting "cancel" only for Special:RunQuery forms. In that case, I would expect a "reset" standard input to reset the form to its original, preloaded condition. And, a "clear" standard input would blank all fields. 

So, I suppose that's 2 different new standard inputs needed to cover both resetting the form, and for clearing it.
Comment 3 Yaron Koren 2013-12-27 13:52:27 UTC
Setting this to "wontfix" - I think "reset/clear" buttons in forms are generally bad; I agree with this:

http://www.nngroup.com/articles/reset-and-cancel-buttons/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links