Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The choices URL property allows you to use an external program to return your choice options and values by passing them using JSON formatting. A PHP script would be one example of a custom program  PHP scripts or Universal Display Files are examples of custom programs used to pass the values to your application. When using the choices URL property, all database-driven auto-complete properties are ignored.

...

These are values returned from an auto-complete select box in a successful response from the external program:

Code Block
languagejavascript
titleFormat for PUI Version 6, Fix Packs after 1.2
{
     "success":true,
     "response":[
          {"text":"Dishes and Cups", "value":"18"},
          {"text":"Soaps", "value":"14"}
     ]
}
Code Block
titleLegacy Format
collapsetrue
{
     "success":true,
     "response":[
          new Option("Dishes and Cups","18"),
          new Option("Soaps","14")
     ]
}

...