Skip to content

Commit

Permalink
updating forms (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic authored Mar 14, 2024
1 parent 2f06e90 commit 11a8b6e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions website/forms/php/shortcodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ Shortcodes are small pieces of code that allow adding forms to the site in place

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:**
```php
[esFormsLink url="https://eightshift.com" label="Eightshift" /]
```
Expand All @@ -19,6 +27,30 @@ This shortcode allows adding links within text labels, e.g. if you need to add a

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:**
```php
[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:**
```php
[esFormsRangeCurrent value="<initialValue>" prefix="<valuePrefix>" suffix="<valueSuffix>" /]
```

0 comments on commit 11a8b6e

Please sign in to comment.