Form:Autocompletion test: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
No edit summary
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 10: Line 10:
{| class="wikitable"
{| class="wikitable"
! Autocompletion type
! Autocompletion type
! Text with autocomplete
! Text with autocomplete - multiple
! Combobox
! Combobox
! Tokens
! Tokens
|-
|-
! values from category (local)
! values from category (local)
| {{{field|1|input type=text with autocomplete|values from category=Countries}}}
| {{{field|1|input type=combobox|values from category=Countries}}}
| {{{field|2|input type=text with autocomplete|list|values from category=Countries}}}
| {{{field|2|input type=tokens|values from category=Countries}}}
| {{{field|3|input type=combobox|values from category=Countries}}}
| {{{field|4|input type=tokens|values from category=Countries}}}
|-
|-
! values from category (remote)
! values from category (remote)
| {{{field|5|input type=text with autocomplete|values from category=Items}}}
| {{{field|3|input type=combobox|values from category=Items}}}
| {{{field|6|input type=text with autocomplete|list|values from category=Sources}}}
| {{{field|4|input type=tokens|values from category=Items}}}
| {{{field|7|input type=combobox|values from category=Items}}}
| {{{field|8|input type=tokens|values from category=Items}}}
|-
|-
! values from namespace
! values from namespace
| {{{field|9|input type=text with autocomplete|values from namespace=User}}}
| {{{field|5|input type=combobox|values from namespace=Category}}}
| {{{field|10|input type=text with autocomplete|list|values from namespace=User|delimiter=;}}}
| {{{field|6|input type=tokens|values from namespace=Category|delimiter=;}}}
| {{{field|11|input type=combobox|values from namespace=Category}}}
| {{{field|12|input type=tokens|values from namespace=Category|delimiter=;}}}
|-
|-
! hardcoded values
! hardcoded values
| {{{field|13|input type=text with autocomplete|values=abc,def,g h}}}
| {{{field|7|input type=combobox|values=abc,def,g h,i-j,k/l}}}
| {{{field|14|input type=text with autocomplete|list|values=abc,def,g h}}}
| {{{field|8|input type=tokens|values=abc,def,g h,i-k,k/l}}}
| {{{field|15|input type=combobox|values=abc,def,g h}}}
| {{{field|16|input type=tokens|values=abc,def,g h}}}
|-
|-
! Cargo field (single)
! Cargo field (single)
| {{{field|17|input type=text with autocomplete|cargo table=Items|cargo field=Source}}}
| {{{field|9|input type=combobox|cargo table=Items|cargo field=Source|cargo where=Author HOLDS 'New York Post editorial board'}}}
| {{{field|18|input type=text with autocomplete|list|cargo table=Items|cargo field=Source}}}
| {{{field|10|input type=tokens|cargo table=Items|cargo field=Source}}}
| {{{field|19|input type=combobox|cargo table=Items|cargo field=Source}}}
| {{{field|20|input type=tokens|cargo table=Items|cargo field=Source}}}
|-
|-
! Cargo field (list)
! Cargo field (list)
| {{{field|17|input type=text with autocomplete|cargo table=Items|cargo field=Author}}}
| {{{field|11|input type=combobox|cargo table=Items|cargo field=Author}}}
| {{{field|18|input type=text with autocomplete|list|cargo table=Items|cargo field=Author}}}
| {{{field|12|input type=tokens|cargo table=Items|cargo field=Author}}}
| {{{field|19|input type=combobox|cargo table=Items|cargo field=Author}}}
|-
| {{{field|20|input type=tokens|cargo table=Items|cargo field=Author}}}
! Cargo field with mapping
| {{{field|13|input type=combobox|cargo table=Authors|cargo field=_pageName|mapping cargo table=Authors|mapping cargo field=Last_name}}}
| {{{field|14|input type=tokens|cargo table=Authors|cargo field=_pageName|mapping cargo table=Authors|mapping cargo field=Last_name}}}
|-
! Cargo field with mapping + where
| {{{field|15|input type=combobox|cargo table=Authors|cargo field=_pageName|mapping cargo table=Authors|mapping cargo field=Last_name|cargo where=Political_affiliation = 'Conservative'}}}
| {{{field|16|input type=tokens|cargo table=Authors|cargo field=_pageName|mapping cargo table=Authors|mapping cargo field=Last_name|cargo where=Political_affiliation = 'Conservative'}}}
|}
|}
Textarea (type=textarea):
{{{field|30|list|input type=textarea|rows=2}}}
Textarea (type=textarea with autocomplete):
{{{field|30a|list|input type=textarea with autocomplete|rows=2}}}
{{{end template}}}
{{{end template}}}



Latest revision as of 20:23, January 26, 2023

This is the 'Autocompletion test' form. To add a page with this form, enter the page name below; if a page with that name already exists, you will be sent to a form to edit that page.