11

Semantic Mediawiki

 3 years ago
source link: http://wikimedia.7.x6.nabble.com/Page-Forms-auto-complete-on-a-list-of-1600-items-tt5074661.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Page Forms: auto complete on a list of 1600 items

May 09, 2017; 1:02pm

Mark A. Hershberger-4 Page Forms: auto complete on a list of 1600 items

I'm trying to write a form where one field has ~1600 values.

I'm attempting to write a script that will return a list of matches and
using “values from url” to let the user supply tokens.

It does this, but not in the format that pageforms is expecting.

Right now it returns something like

{"sfautocomplete":
        {"Earline's":451,
        "Gwendoline":619,…}}

But this isn't the format expected. What format should I be sending
back?

Mark.


--
Mark A. Hershberger
NicheWork LLC
717-271-1084

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

May 09, 2017 Yaron Koren-2 Hi Mark,

I'm curious why you mentioned the number of values involved. Is this a standard set of data, like the values of a property? If so, Page ...

May 10, 2017 Mark A. Hershberger-4 To clarify, I'm using Semantic Forms (PF before it was renamed). But, looking at the code in question (select2.js in this case), it looks like t...

May 09, 2017 Hermann Schwärzler Hi Mark,

looking at the link to the example in the page Yaron just recommended, your format should be {"pfautocomplete": [ {"...


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK