Skip to main content

Shortcodes

What are shortcodes?

Shortcodes are small pieces of code that allow adding forms to the site in places blocks can't be easily added.

This shortcode allows adding links within text labels, e.g. if you need to add a privacy policy link to a form checkbox label.

Available usage:

  • Form field label (e.g. checkbox label, radio label, etc.)

Available attributes:

  • url - (string) (required) The URL of the link.
  • label - (string) (required) The label of the link.

Example usage:

[esFormsLink url="https://eightshift.com" label="Eightshift" /]

esFormsROIP

The esFormsROIP (Result output item part) shortcode allows showing certain content inline, based on the user input. The content is shown if the provided name matches the fields defined within filters.

Available usage:

  • Result output custom post type

Available attributes:

  • name - (string) (required) The name of the key to check.

Example usage:

[esFormsROIP name="<key>"]Default content[/esFormsROIP]

esFormsRangeCurrent

The esFormsRangeCurrent shortcode allows showing the current value of the range input.

Available usage:

  • Form field range label.

Available attributes:

  • value - (string) (required) The initial value of the range.
  • prefix - (string) (optional) The prefix of the range value.
  • suffix - (string) (optional) The suffix of the range value.

Example usage:

[esFormsRangeCurrent value="<initialValue>" prefix="<valuePrefix>" suffix="<valueSuffix>" /]