New on the blog: why AI belongs in the feed →

Gravity Forms Shortcode Builder

Pick a shortcode, fill in the fields, and copy a shortcode that works. Attributes left at their default are dropped, so what you paste stays short. Every attribute and default comes from our tested Gravity Forms shortcodes reference.

The builder needs JavaScript. Every attribute it covers is also listed in our Gravity Forms shortcodes reference.

Shortcodes the builder covers

  • [gravityform]: embed a form, with title, description, AJAX, theme and pre-filled field values.
  • [gravityforms action="conditional"]: show text in a notification or confirmation only when a merge tag matches.
  • [gravityview]: embed a GravityView View, filtered, sorted and paged, or print a live entry count.
  • [gvlogic], [gvlogic2], [gvlogic3]: conditional content with every comparison GravityView supports, plus [else].
  • [gv_entry_link], [gvfield] and [gventry]: link to, print or embed a single entry.
  • [gravops_search]: the basic attributes for searching entries and printing them in your own HTML. The full point-and-click builder, with live preview, validation and saved shortcodes, comes with GravityOps Search Premium.
  • [gravityops_chart]: chart live entries with no feed to set up first (GravityOps Charts).

How to use it

  1. Choose a shortcode from the list.
  2. Fill in the IDs. Form IDs are in the ID column of Forms → Forms; View IDs are on the Views screen. Fields marked * are required.
  3. Read any yellow notes under the result. They flag missing attributes and settings that commonly trip people up.
  4. Click Copy shortcode and paste it into a Shortcode block, a Custom Content field, or a notification.
  5. To send the setup to a colleague, click Copy link to this setup. The link reopens the builder with the same values.

Questions

Why does my shortcode print as text instead of running?

Curly quotes pasted from a word processor are the most common cause. The builder always writes straight double quotes. Other causes: the plugin that registers the tag is inactive, or the tag is wrapped in double brackets, which WordPress prints literally.

Is there a difference between [gravityform] and [gravityforms]?

No. Both tags call the same Gravity Forms handler. The convention is [gravityform] to embed a form and [gravityforms action="…"] for the action modes.

How do I nest [gvlogic] blocks?

WordPress cannot nest a shortcode inside itself, so GravityView registers [gvlogic2] and [gvlogic3]. Pick the level in the builder’s tag field. There is no [gvlogic4]; Global Variables for GravityMath removes the depth limit.

Why can’t logged-out visitors see my chart?

GravityOps Charts are private by default. Set access to public in the builder to show a chart to everyone.

Does the builder save or send what I type?

No. It runs entirely in your browser. Nothing is stored, and the only copy of your setup is the link in your address bar.

Need code rather than a shortcode? Browse our free Gravity Forms code snippet library.