=== GravityOps Search - Search and Display Gravity Forms Entries - Lite === Contributors: eitanatbrightleaf, freemius Tags: gravityforms, gravity-forms, search entries, display entries, front-end search Requires at least: 6.5 Tested up to: 7.1 Requires PHP: 8.0 Stable tag: 1.2.5 License: GPLv2 License URI: https://brightleafdigital.io/gravityops-search/ Search Gravity Forms entries from a shortcode and show matching results anywhere on your site, filtered by any field and formatted your way. == Description == GravityOps Search gives Gravity Forms site builders a `[gravops_search]` shortcode that finds entries by any field and prints the matching values anywhere on the front end, formatted however you need. | Feature | Free | Premium | | --- | --- | --- | | `[gravops_search]` shortcode: search one, several, or all forms | Yes | Yes | | Filter by field ID, entry property, field label, or field type | Yes | Yes | | Operators: equals, not equals, contains, like, in / not in, greater / less than | Yes | Yes | | Custom display templates with HTML, placeholders, and nested shortcodes | Yes | Yes | | Sorting, secondary sort, limits, unique results, default values | Yes | Yes | | Admin entry links on each result | Yes | Yes | | Docs and Help tabs in the GravityOps dashboard | Yes | Yes | | Visual Shortcode Builder with live preview, validation, and test run | No | Yes | | Builder presets and starter templates | No | Yes | | Saved Shortcodes library (copy, edit in builder, delete) | No | Yes | * [Documentation](https://brightleafdigital.io/docs-category/gravityops-search/) (also available in the plugin's Docs tab) * [GravityOps Help community](https://brightleafdigital.io/community/gravityops-help/) Drop the shortcode into a page, post, GravityView field, or template and it works like a lookup for Gravity Forms entries: you choose which forms and fields to search, how to compare the values, and what to output for each match. It needs no PHP and no custom queries. The shortcode can show a single field from the latest matching entry or build a reporting-style view that combines fields, entry properties, and custom HTML. Everything is driven by attributes, so you decide exactly which entries are included and how their data appears. GravityOps Search is for front-end display. It does not add search tools to the Gravity Forms admin Entries screen. GravityOps Search requires Gravity Forms. == Features == * Target all forms (`target="0"`), a single form, or a comma-separated list of form IDs. * Filter by a comma-separated list of field IDs or entry properties with the `search` attribute. * Filter by field label (`search_label`) or field type (`search_type`) to search across forms whose field IDs differ. `field_match` controls whether the first or every matching field is used. * Pass search values in the shortcode content, separated by a pipe (`|`) in the same order as the search fields. * Require all conditions (default) or any condition with `search_mode="any"`. * Search every field at once by leaving a search ID blank. * Control each comparison with the `operators` attribute: equals, not equals, contains, SQL-style `like`, `in` / `not in` lists, and numeric greater than / less than (or equal). * Display one or many fields and properties per result with the `display` attribute, from a simple field list to a full HTML template. * Use placeholders such as `{13}`, `{13.3}`, `{id}`, `{form_id}`, and `{gos:id}`, plus `{gos:num_results}` for the number of matches. * Control how results are joined with `separator`, including HTML separators or no separator (`__none__`). * Sort with `sort_key`, `sort_direction` (`ASC`, `DESC`, `RAND`), and `sort_is_num`, with `secondary_sort_key` and `secondary_sort_direction` for tie-breaking. * Limit results with `limit`, or show every match with `limit="all"`. * Remove duplicate output with `unique`. * Find empty or blank values with `search_empty`. * Show fallback text when nothing matches, or per-field defaults when a value is empty, with `default`. * Wrap each result in a link to the entry in the Gravity Forms admin with `link`. * Nest GravityMath, another `[gravops_search]`, or any other shortcode inside the output. * Runs alongside the legacy `gfsearch` snippet without conflict. * **Visual Shortcode Builder (Premium):** build `[gravops_search]` shortcodes with a point-and-click UI. Pick forms, add filters by ID, label, or type, choose a simple field list or a block-based template, see the live shortcode with validation hints, run it against your real entries, and save it. * **Saved Shortcodes library (Premium):** name and save shortcodes from the builder, then copy, reopen in the builder, or delete them from a dedicated tab. == How It Works == GravityOps Search reads your shortcode attributes and content to decide which entries to fetch, then formats each match according to the `display` attribute. `target` sets which forms to query: `0` for all forms, one form ID, or a comma-separated list. `search` lists the field IDs and entry properties to filter on, and the shortcode content supplies the matching values, separated by `|` in the same order. `search_mode` sets the matching logic. The default, `all`, requires every condition to match; `search_mode="any"` returns entries that meet at least one. To search every field for a value, leave that position's search ID blank. Sorting, limiting, and uniqueness are applied after the search conditions. `sort_key` accepts a field ID, entry property, or meta key, and `sort_direction` accepts `ASC`, `DESC`, or `RAND`. `sort_is_num` makes numeric values compare as numbers. `secondary_sort_key` and `secondary_sort_direction` set a second ordering, for example by date and then by name. `limit` then sets how many entries are returned, and `unique` removes duplicates based on the rendered output. `default` sets text to show when no entries are found or when a displayed field is empty; separate several defaults with `||` to map them to several display fields. `separator` sets how entries are joined, so you can build line-separated lists, `
  • ` items, or table rows. Each `[gravops_search]` shortcode runs its own live query, so different instances can show different views of the same data. == Display and Formatting == The `display` attribute controls the output. In its simplest form it takes a comma-separated list of field IDs or entry properties, such as `display="13,14,15"`, and outputs those values in order for each matching entry. This suits raw values such as a list of email addresses or IDs. For more control, `display` accepts a template with placeholders, such as `display="Name: {13}, Email: {14}"`, rendered once per entry. `{13}` inserts field 13, and `{id}` and `{form_id}` insert entry properties. Where standard merge tags are also parsed (GravityView content fields, confirmations, notifications), use `{gos:id}` to avoid conflicts. `{gos:id;fallback}` sets a default for a single placeholder. `display` also accepts HTML, including tags, attributes, and CSS classes. Wrap values in `
    `, ``, `