Page MenuHomePhabricator

[SF] Special:RunQuery needs a standard input to clear and reset the form
Closed, DeclinedPublic

Description

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.


Version: unspecified
Severity: enhancement

Details

Reference
bz34290

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:17 AM
bzimport set Reference to bz34290.

I assume you mean "reset", as opposed to "cancel".

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.

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/