Last modified: 2014-02-12 23:38:24 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 T34976, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32976 - [SF] fields to allow only existing values, with error otherwise
[SF] fields to allow only existing values, with error otherwise
Status: NEW
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: 2011-12-12 05:21 UTC by badon
Modified: 2014-02-12 23:38 UTC (History)
0 users

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


Attachments

Description badon 2011-12-12 05:21:49 UTC
Consider a field that lets a user set a value based on a category, like this:

   {{{field|FieldName|input type=text with autocomplete|values from category=Category}}}

Currently, the field will allow the user to save a value that does not exist.  I propose that the field can be defined so that the saved value is limited to existing values, like this: 

   {{{field|FieldName|input type=text with autocomplete|values from category=Category|existing values only}}}

The user could still type in a non-existing page, but existence is verified after the user clicks the "Save page" button. If the value does not exist within the "values from" parameter, an error message displays and the form stays open. That error message behavior would match that of a mandatory field that is empty when submitted.

Most of the text of this report was copied from here:

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

and based on this discussion:

http://wikimedia.7.n6.nabble.com/quot-one-to-many-quot-validation-td678004.html

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


Navigation
Links