Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/_tips/form-attributes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TIP: Valid HTML Form attributes (as listed in the [config file](config/config-files.md#html-form-attributes)), `data-` and `aria-` attributes passed through ExpressionEngine tag parameters in the template will be included into generated opening form tag.
2 changes: 2 additions & 0 deletions docs/add-ons/consent.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Consent Forms allow the visitor to grant or withdraw consent to one or more Cons

[TOC=3]

{{embed:_tips/form-attributes.md}}

#### `consent=`

consent='ee:cookies_functionality'
Expand Down
2 changes: 2 additions & 0 deletions docs/add-ons/email.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ The contact form is created similar to a standard web form, only you **do not**

[TOC=3]

{{embed:_tips/form-attributes.md}}

### `charset=`

charset="utf-8"
Expand Down
2 changes: 2 additions & 0 deletions docs/add-ons/search/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ The search results are displayed on the page you specify as the [result_page=](#

[TOC=3]

{{embed:_tips/form-attributes.md}}

### `category=`

category="1"
Expand Down
2 changes: 2 additions & 0 deletions docs/add-ons/search/simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ Besides specifying whether future entries are included in the search using the [

## Parameters

{{embed:_tips/form-attributes.md}}

### `name=`

name="search_form"
Expand Down
2 changes: 2 additions & 0 deletions docs/channels/channel-form/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ By default, validation errors will be displayed using the User Message Template.

[TOC=3 hide]

{{embed:_tips/form-attributes.md}}

The Following parameters are available for the `{exp:channel:form}`:

### `allow_comments=`
Expand Down
2 changes: 2 additions & 0 deletions docs/comment/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ TIP: **Tip:** Notice the variables in the "value" form fields? These allow us to

[TOC=4]

{{embed:_tips/form-attributes.md}}

#### `entry_id=`

entry_id="24"
Expand Down
6 changes: 6 additions & 0 deletions docs/config/config-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ The list of the words that are being used to generate [CAPTCHA](security/captcha

This file contains an array of foreign characters for transliteration conversion used by the Text helper (example would be generating URL Titles for entries).

#### HTML Form Attributes

`valid_form_attributes.php`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@intoeetive Should this be a .php file reference? Or more of a embed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TomJaeger it's name of config file. No links of embeds here


Valid HTML attributes that might be passed via EE template tag parameters to the `form` tag when creating forms with `ee()->functions->form_declaration()`. Additionally, `data-` and `aria-` attributes can be used.

#### Allowed Mime Types

`mimes.php`
Expand Down
2 changes: 2 additions & 0 deletions docs/development/legacy/libraries/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ Any form will accept the `form_class` and `form_id` parameters. Access the value

$r = ee()->functions->form_declaration($form_details);

{{embed:_tips/form-attributes.md}}

### `form_backtrack([$offset = ''])`

| Parameter | Type | Description |
Expand Down
2 changes: 2 additions & 0 deletions docs/member/edit-avatar.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ This tag allows users to edit their avatar image. The image will be uploaded to

## Parameters

{{embed:_tips/form-attributes.md}}

### `return=`

return="member/profile"
Expand Down
2 changes: 2 additions & 0 deletions docs/member/edit-profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Edit member profile.

## Parameters

{{embed:_tips/form-attributes.md}}

### `datepicker=`

Include the datepicker javascript. This should be set to ``yes`` if there is a date type member custom field in order to output the calendar.
Expand Down
2 changes: 2 additions & 0 deletions docs/member/login.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Output a login form.

## Parameters

{{embed:_tips/form-attributes.md}}

### `action=`

action="https://example.com/"
Expand Down
4 changes: 2 additions & 2 deletions docs/member/logout.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Output a log out form.

## Parameters

{{embed:_tips/form-attributes.md}}

### `action=`

action="https://example.com/"
Expand Down Expand Up @@ -65,5 +67,3 @@ This parameter allows you to define where the user will be returned after succes

1. Use the standard Template_Group/Template syntax to specify where to return the user. For instance, if you want the user to be returned to the "local" Template in the "news" Template Group, you would use: return="news/local"
2. Use a full URL. For example: return="<https://example.com/return.html>"


2 changes: 2 additions & 0 deletions docs/member/memberlist.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Outputs a searchable list of members, including form filters to sort and limit t

## Parameters

{{embed:_tips/form-attributes.md}}

### `role_id=`

role_id="5"
Expand Down
2 changes: 2 additions & 0 deletions docs/member/registration.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ NOTE: **Important:** In order for site visitors to be allowed to register for ac

## Parameters

{{embed:_tips/form-attributes.md}}

### `return=`

return="member/registration/success"
Expand Down