• Hey,

    I’m using the search-tag to view specific fields in my table, using the code [cfdb-table form=”myform” search=”Name”].

    Now I would like to create a drop-down list with all the names in the DB. When choosing a name in the list, I would like the fields for that specific person to be shown in the table.

    Any ideas?

Viewing 1 replies (of 1 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    Using [cfdb-html] you could simply create a SELECT tag

    
    [cfdb-html form="myform" search="Name"]
    {{BEFORE}}
    <select>
    {{/BEFORE}}
      <option value="${field_name}">${field_name}</option>
    </select>
    {{AFTER}}
    </select>
    {{/AFTER}}
    [/cfdb-html]
    

    If you want to create a drop-down as part of a CF7 see: http://cfdbplugin.com/?page_id=1435

Viewing 1 replies (of 1 total)

The topic ‘View fields using search and drop-down list’ is closed to new replies.