https://bugzilla.wikimedia.org/show_bug.cgi?id=30042

--- Comment #24 from [email protected] 2011-11-16 23:42:36 UTC ---
Here's an example of a situation where it might be desirable to optionally
enable these problem characters to be input (Login with Demo/test):

http://www.coincompendium.com/wiki/index.php?title=File:IMG_0629.JPG&action=formedit

Granted, it's being done in the textarea that's already excluded from this
patch, but it could just as easily appear in other areas of the form, so is
still a handy example. Notice two things:

1. Lupo's ImageAnnotator uses template formatting. A future version of the
ImageAnnotator might be made compatible with Semantic Forms (Note 0). That
could raise the possibility that annotation data with curly braces and possibly
pipes would appear in form field, perhaps automatically using ImageAnnotator's
JavaScript.

2. The form provides very simple bolded instructions that suggests users try
doing a template substitution. Template substitutions are very easy ways to ask
a form's users to do something unusual in a form field, without any effort.
Almost anybody is capable of following such simple instructions in order to
access sophisticated features that would otherwise be far too complicated for
an ordinary user.

I like f.trott's idea for a validate parameter on form fields. That would allow
form creators to tailor the form for their needs. Indeed, it opens the
possibility of generalizing the validation code such that ANY type of
validation can be done. 

For example, a form field that inputs monetary amounts may require that the
currency be selected in another field. By allowing only numbers, it will serve
to prevent symbols from being entered. Here's an example of that exact use
case, where the best I've been able to do is tell users to enter numbers only,
and not to enter symbols:

http://www.coincompendium.com/wiki/index.php/Special:FormEdit/Sighting/CCS2



Note 0. If you're impressed by Lupo's ImageAnnotator, have a look here for the
suggestion to incorporate it into an extension and then SMW:

https://www.mediawiki.org/wiki/User:Badon/Extension:Semantic_MediaWiki/Manual#Future_TODO

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to