...
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 | ||||
---|---|---|---|---|
| ||||
{ "success":true, "response":[ {"text":"Dishes and Cups", "value":"18"}, {"text":"Soaps", "value":"14"} ] } |
Code Block | ||||
---|---|---|---|---|
| ||||
{ "success":true, "response":[ new Option("Dishes and Cups","18"), new Option("Soaps","14") ] } |
...