Versions Compared

Key

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

...

With "Aston Martin" selected:

Image Modified


With "Rolls Royce" selected:

Image Modified

Database Setup

To implement this example, a database will be required containing the vehicle information.  A simple table with a Make and Model column is all that is required:

Image Added

Using the table setup described here, additional Routes can be added to the GlobalForms configuration to expose the data to any forms that might need it.

Code Block
languagejs
titleRoutes
{
	"method": "get",
    "endpoint": "/makes",
    "query": "SELECT distinct make FROM [Vehicles];"
},
{
    "method": "get",
    "endpoint": "/makes/:make",
    "query": "SELECT model FROM [Vehicles] where make = '{{ params.make }}';"
}