• Vincent

    (@vinnyboy)


    Dataset:
    first-name, last-name, address
    Mister, Smith, 123 Main St
    Ms, Jones, 55 First Ave

    Is there an easy built in way to do the following (dynamically using JSON of course). Any help is greatly appreciated.

    Dropdown Menu
    ————
    Smith <——SELECTED
    Jones

    Returned Data
    ————-
    Mister, Smith, 123 Main St

    https://ww.wp.xz.cn/plugins/contact-form-7-to-database-extension/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Vincent

    (@vinnyboy)

    Just to clarify I was thinking to use JSON with AJAX to make what I want possible. Every time someone picks an item from the drop down, the data on the page changes without actually submitting and reloading the entire page.

    Plugin Author Michael Simpson

    (@msimpson)

    From the CFDB ShortCode page, create an export file that exports JSON. Set a dummy value like “xxxxx” in the “search” field. That generates a URL that you can use. In your page JS, replace “xxxxx” with whatever is selected then make your AJAX call to that URL.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘JSON – filter records using dropdown menu’ is closed to new replies.