Create a Search Form

Feb 8, 2016
Create a Search Form
  • How to build a search form that will filter the data of a list by the values entered in the form:
    • Create a new form
      • Set "Record in database" = NO (in Form processing)
      • Save (+Save & Close with Content type = Default)
    • Copy over the list's elements you want to use for searching
      • In "Elements" filter for the form/groups belonging to your list
      • Select (checkbox) the elements you want to copy, click "Copy"
      • In "Copy to group" select your searchform group, "Save"
    • In "Elements" filter for your searchform group
      • Edit (unlink) and adapt all elements
        • you can unpublish or trash id and date_time (and empty trash)
        • for all elements you want to use: make sure they are visible to the user and/or have correct default values
        • check validations (e.g. "isunique value" doesn't make sense and will throw a MySQL error)
    • Edit your searchform
    • Create a menu item pointing to your search form