Page MenuHomePhabricator

autocompletion limited to existing values
Closed, InvalidPublic

Description

Author: trueskew

Description:
Add a flag to a field that uses autocompletion that causes the final value to be checked for page existence.

On Submit, when the flag is excluded, the field potentially holds a page that does not exist. When the flag is included, if the field holds a page that does not exist, an error message is displayed on the screen, and the Submit fails, waiting for further edits.


Version: unspecified
Severity: enhancement

Details

Reference
bz26086

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:18 PM
bzimport set Reference to bz26086.

trueskew wrote:

Clarification: Consider a field that lets a user set their homepage:

{{{field|Homepage|autocomplete on category=Wiki Page}}}

where all valid home pages are in category Wiki Page. Today, this field specification will allow the user to save the name of a page that does not exist. For example,

{{{field|Homepage|autocomplete on category=Wiki Page|mustexist}}}

The user could still type in a non-existing page. Existence is verified after the user hits "Save page". If the page does not exist, an error message displays and the form stays open, similarly to how it functions on a missing mandatory field.

trueskew wrote:

Fixed the title to be more general

trueskew wrote:

Resolving this issue so it can be deleted and better stated.