Formidable Forms

Formidable Forms

  • Features
  • Pricing
  • Resources
    • Docs & Support
    • Blog
    • Community
  • Solutions
    • Web Applications
    • Calculators
    • Surveys
    • Directories
    • Payments
    • Contact forms
  • Login
  • Get Formidable Forms

Formidable Shortcodes

Last Updated: April 28, 2020

Knowledge Base → Extend Formidable Forms → Formidable Shortcodes

Formidable Pro for WordPress forms offers a variety of shortcodes, or shortcuts, which can be used to easily accomplish a number of different tasks. These shortcodes can do anything from displaying an edit link to calculating a statistic from your form entries. Shortcodes can be inserted on any page, post, View, text widget, or even an HTML field in a form. Below is a complete list of all the shortcodes provided by Formidable.

Formidable Forms is the best WordPress Form Builder plugin. Get it for free!

Display a list of entries

[frm-entry-links id=x]

Add a list of entries to a page, post, or widget. Just replace 'x' with the ID of your form. Each item in the list can be used as a link to view or edit the entry. The list can be a dropdown, a collapsed list, or a full list. By default, each list item will be the entry creation date, however, this can be customized. For more information, see how to Display a List of Entries.

Display a table of entries

[formresults id=x]

Display all entries from a form in a table without adding any HTML. Just replace 'x' with the ID of your form. Customization of this table is limited. If you need more control, you can create a View. For more information on this shortcode, click here.

Display a single entry in a table

[frm-show-entry id=x]

Display the content from a single entry in a table. Just replace 'x' with the ID of the entry to display. The presentation of data is not customizable in this shortcode. If you need more control, you can create a View. For more information on this shortcode, click here.

Set values for views and forms

[frm-set-get param_name="value"]

This shortcode allows you to set values, or parameters, that can be used within Views and forms. Once parameters are set using this shortcode, they can be used to filter Views, to set default values within forms, and to further customize form and View interactions. For more information, click here.

Get a value from an entry

[frm-field-value field_id=x entry_id=y]

You may get the value from a field and display it on a page, post, View or in a field from a different form. See Get a Value from an Entry for more information.

Add an edit link

In pages and posts

[frm-entry-edit-link id=x label="Edit" page_id=y]

In Views and forms

[editlink location="front" label="Edit" page_id=2]

You may insert an edit link on any page, post, or View to allow users to easily edit or update an entry. Before an edit link will work correctly, you need to set up your form to allow editing for a single entry or multiple entries. Learn more about adding edit links.

Insert a link to update a field

[frm-entry-update-field id=x field_id=y value="new value"]

This shortcode adds an Update link that changes the value of a single field in a single entry via Ajax. If the current value of that field is the same as the value parameter in your shortcode, the link will not be seen. For more information on this shortcode, click here.

Add a delete link

In pages and posts

[frm-entry-delete-link id=x page_id=y label="Delete"]

In Views and forms

[deletelink label="Delete"]

Allow users to easily delete entries by adding a delete link to a page, post, form, or View. When a user clicks on the delete link, the specified entry will be deleted. For more information, see how to Allow Users to Delete Entries.

Publish a form

[formidable id=x]

This shortcode can be used to publish your form wherever you would like. Just replace x with the ID of your form. For more information, see how to publish a form.

Publish a view

[display-frm-data id=x filter=1]

Publish a View on a page, post, or within another Views using this shortcode. Just replace 'x' with the ID of the View. Read more about how to publish a view.

Display repeating section data

Use the [foreach] shortcode to display entries from a Repeating Section in a View or email. The [foreach] shortcode allows you to group field values together when they are from the same row in the Repeating Section.

[foreach 100]
[101] - [102]
[/foreach]

Replace 100 with the field ID of the Repeating Section. Replace 101 and 102 with the field IDs that are inside of the Repeating Section.

Insert field totals and statistics

[frm-stats id=x type=count]

Calculate a variety of different statistics from your form entries using this shortcode. Replace 'x' with the ID of a field in your form. (Please note that this is the id a field in your form, not the id of the form.) You can calculate a total, average, entry count, maximum, minimum, etc. For complete information about this shortcode and its parameters, click here.

Calculate a value

[frm-math]100 - [frm-stats id=100 type=count][/frm-math]

Calculate the value of a math expression in a View, post, page, or anywhere else WordPress shortcodes work. You can use fixed numbers or shortcodes for the values in your math expression. In a View, Email Notification, or Success message, you can also use field shortcodes, e.g. [100]. You can use addition (+), subtraction (-), multiplication (*), division (/), mod (%), and parentheses in your math expression. Learn more about the frm-math shortcode.

Insert a graph

[frm-graph id=x]

You may display a graph of the results of a form on any page, post, View, or form. Just replace 'x' with the ID of your form. To see what your graph options are, go into your form and click on “Reports". Learn more about the frm-graph shortcode.

Insert a search form

[frm-search]

Add a search bar to any page, post, widget, or View using this shortcode. This search bar is specifically meant to search Views, an entry list, or a Formidable table of entries. For more information on this shortcode, see Insert a Search Form.

Basic helpers

A Customization panel is located in the right sidebar on the form settings page or View settings. The bottom of the Insert Fields section shortcodes are used to insert the entry ID, post ID, date and time the entry was created, your site URL, etc.

Advanced helpers

See a list of advanced shortcode helpers.

Default values

There are several shortcodes which can be used to autopopulate fields in your form with your user's first and last name, today's date, the current time, user meta, a parameter in the URL, etc. For more information on default values, refer to the dynamic default values page.

Conditional statements

[if 125 equals="Yes"]Content[/if 125]

Conditional statements like this can be used in several places to conditionally show certain content. They are most commonly used in Views and email messages, but they can also be used to direct users to a different URL or display a different confirmation message depending on a response in the form. See a complete list of conditional statement shortcodes.

Compare values

The frm-condition shortcode can be used to compare values before displaying something on the page. It can be used just like conditional statements, but isn't limited to views. Read more about how to compare two values for display.

Dynamic Fields

To view Dynamic Field shortcode options, click here.

HTML tags

While on the form "Customize HTML" page, a Customization panel will appear in the right sidebar. The Customization panel contains field and form shortcodes for easier form customization.

File upload fields

Maybe field types offer specific shortcode options for customizing the output. Learn more about the options for file upload fields.

UserID shortcodes

If you have a UserID field in your form, you can display information from the selected user's profile in a View, email, or confirmation message. The UserID shortcodes can be found in the Advanced section of the Customization panel which is located in the right sidebar when you are in your form Settings or a View. The complete list of UserID shortcode parameters are listed on the UserID field page.

  • Display a list of entries
  • Display a table of entries
  • Display a single entry in a table
  • Set values for views and forms
  • Get a value from an entry
  • Add an edit link
  • Insert a link to update a field
  • Add a delete link
  • Publish a form
  • Publish a view
  • Display repeating section data
  • Insert field totals and statistics
  • Calculate a value
  • Insert a graph
  • Insert a search form
  • Basic helpers
  • Advanced helpers
  • Default values
  • Conditional statements
  • Compare values
  • Dynamic Fields
  • HTML tags
  • File upload fields
  • UserID shortcodes
Categories
×

Categories

  • Installation & Getting Started
  • Account Management
  • Forms
  • Entries
  • Views
  • Styles
  • Importing & Exporting
  • Add-Ons
  • Extend Formidable Forms

Using WordPress and want to get Formidable Forms for free?

Get Formidable Forms Lite Now

You do not have permission to view this form. Maybe you need to log in?

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

Take on bigger projects Right Now

Get the tools you need to revolutionize your workflow and architect a masterpiece. Build the most advanced WordPress forms and actually use the data you collect in meaningful ways.

Get the most advanced WordPress form plugin and the only form builder with integrated Views.

Get Formidable Forms Now

Resources

  • Community
  • Affiliates
  • Contact
  • Free Online Form Builder

Top Features

  • Application Builder
  • Calculator Forms
  • Surveys & Polls
  • Quiz Maker
  • Form Templates
  • Application Templates
  • Directories
  • Donation Plugin

Company

  • About Us
  • Giving Back
  • Careers
  • Newsletter
  • WP Tasty
  • Nutrifox

Copyright © 2023 Strategy11, LLC. Formidable Forms® is a registered trademark Strategy11, LLC.
Privacy Policy | Terms of Service | Sitemap

Join 300,000+ using Formidable Forms to create form-focused solutions fast. Get Started See User Reviews