You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/forms/basics.mdx
+121-4Lines changed: 121 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,125 @@ title: Basics
5
5
6
6
import { Video } from'./../src/docs/videos';
7
7
8
-
*Content coming soon...*
8
+
## How to use it?
9
+
10
+
Eighshift Forms is a WordPress plugin that allows you to create forms in a visual way. It is based on the [Gutenberg editor](https://wordpress.org/gutenberg/).
11
+
At this time, the plugin is not a part of the WordPress repository, so it needs to be installed manually.
12
+
13
+
To install it you should:
14
+
1. Open the Eightshift Forms [GitHub repository](https://github.com/infinum/eightshift-forms/releases) and find the latest release.
15
+
2. In the latest release details, under _Assets_, find the `release.zip` file and download it to you project folder.
16
+
3. After you unzip it it will be available in you WordPress admin under _Plugins_ section.
17
+
4. Activate the plugin
18
+
19
+

20
+
21
+
## Terminogy
22
+
23
+
We will use some terms in this documentation that you should be familiar with.
24
+
***Form** - a collection of fields that used to collect data from the user
25
+
***Field** - single data input element
26
+
***Form listing** - list of all created forms
27
+
***Locations** - list of places a form is used on the website
28
+
***Edit form** - allows editing a form
29
+
***Trashed forms** - list of forms that are marked as deleted (but not yet deleted permanently)
30
+
***Form settings** - settings for a specific form
31
+
***Global settings** - settings shared between all forms
32
+
***Admin bar** - a collection of buttons and indicators displayed on the top of the admin area
33
+
***Form quick menu bar** - menu with shortcut buttons for easy access to functions like editing the form or changing its settings, shown only when logged in
34
+
***Form picker block** - block that allows selecting a form that will be displayed on the frontend
35
+
36
+
## Forms listing
37
+
38
+
This page lists all created forms, which can be used in pages, posts, etc.
39
+
Also, it contains multiple useful features to help manage the forms.
40
+
41
+
* Form type filter - filter your listing page by the form type
42
+
* Delete - delete one or more forms
43
+
* Sync - sync one or more forms with the external integration and update the form fields
44
+
* Duplicate - duplicate one or more forms
45
+
* Trashed - see all the trashed forms
46
+
* Create - add a form
47
+
* Locations - see all the locations where a form is displayed
48
+
* Setting - edit the form settings
49
+
* Edit form - edit the form
50
+
* Warnings - see all the warnings related to the form
51
+
* Multi-language - see all the languages that are used on the form (if you using a multi-language plugin)
52
+
53
+

54
+
55
+
### Locations
56
+
57
+
Shows a list of all the places on the website that a selected form is used.
58
+
59
+
More details are available [here](features/locations).
The dashboards gives you an overview of the currently active features and enables activating and deactivating of them.
101
+
102
+
More details can be found [here](features/dashboard).
103
+
104
+

105
+
106
+
## Admin bar
107
+
108
+
Admin bar is a toolbar displayed on the top of the WordPress admin interface. It is shown only when logged in.
109
+
110
+
It contains various WordPress functionalities, as well as an _Eightshift forms_ menu, which contains shortcuts to the list of forms, current form settings, global settings, troubleshooting tools, etc.
111
+
112
+

113
+
114
+
## Form quick menu bar
115
+
116
+
The quick menu bar allows easy access to form editing and form settings.
117
+
It is shown besides a form, in the frontend view, only when logged in.
118
+
119
+

120
+
121
+
## Form picker block
122
+
123
+
The `Form picker` block allows choosing a form that will be shown on the frontend. It is available in the Gutenberg editor, under the `Eighshift Forms` category.
WPML is plugin that allows multi-lingual functionality for the website, allowing features like post and media translations. Eightshift Forms is fully compatible with WPML, and allows adding language variants (_translations_) to forms.
7
+
8
+

9
+
10
+
## How to use
11
+
12
+
If using WPML, enable the _WPML_ feature in form settings. This will ensure the forms is displayed correctly in the form listing page, and that all the multi-language features work.
13
+
14
+
## Features affected by WPML
15
+
16
+
WPML affects the following features:
17
+
18
+
### Forms listing
19
+
20
+
By default, we use `get_locale()`to retrieve the default language of the project. Once WPML is activated, a new language tag is assigned to each setting, and the forms display only in the language they're assigned to.
21
+
22
+
### Forms selector
23
+
24
+
When selecting forms in the Forms picker, only the forms in the current editing language are visible.
25
+
26
+
### Forms settings
27
+
28
+
Forms settings are unique for each language variant of the form.
29
+
30
+
### Global settings
31
+
32
+
Global settings, similar to form settings, are unique for each language variation, with the exception of API keys, tokens, etc.
Copy file name to clipboardExpand all lines: website/forms/php/helpers.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@ title: Helpers
5
5
6
6
Eightshift Forms offers static helpers that can be implemented in your project. The key difference between these helpers and filters is that you can use the former in your theme or plugin code regardless of the load cycle.
7
7
8
+
All helpers can be found [here](https://github.com/infinum/eightshift-forms/blob/develop/src/Helpers/esForms.php).
9
+
8
10
### esFormsGetFormIdByName
9
11
10
12
This function retrieves the custom, unique name of a form, as set in the Form settings, from the provided form ID. It's useful when applying specific settings to one or more forms using filters in your project.
@@ -58,3 +60,15 @@ if (\function_exists('esFormsGetComponentsRender')) {
Copy file name to clipboardExpand all lines: website/forms/welcome.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@ id: welcome
3
3
title: Welcome
4
4
---
5
5
6
+
import { Video } from'./../src/docs/videos';
7
+
6
8
Welcome to the Eightshift Forms documentation! This powerful and versatile WordPress project is designed to revolutionize the way you handle forms in your web development projects.
7
9
8
10
Eightshift Forms were crafted to streamline the process of creating and managing forms for your websites or web applications. Whether you're building a simple contact form or a complex multi-step survey, this package offers the flexibility and tools you need to achieve your goals with ease.
@@ -32,3 +34,5 @@ Here's a glimpse of what Eightshift Forms brings to the table:
32
34
- Security and performance: Uses nonce verification, sanitization and escaping to ensure your forms are secure. It also uses AJAX to submit forms without reloading the page, improving user experience and speed.
33
35
34
36
Whether you're a seasoned developer seeking to optimize your form-building process or a beginner looking for a reliable and feature-rich solution, Eightshift Forms has something to offer for everyone.
0 commit comments