Step Form
Creates a multi step form to get more leads and increase engagement.
How to use?
Wrap any block in a parent element with an ID or class and add the same ID in the JS init function of the hs.validation.js
plugin.
Copy-paste the following <script>
near the end of your pages under JS Front to enable it.
Copy-paste the init function under JS Plugins Init., before the closing </body>
tag, to enable it.
Validation
To validate the the plugin, we use jQuery Validation.
Copy-paste the following <script>
near the end of your pages under JS Implementing Plugins to enable it.
Copy-paste the following <script>
near the end of your pages under JS Front to enable it.
Copy-paste the init function under JS Plugins Init., before the closing </body>
tag, to enable it.
Methods
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-
, as in data-progress-id=""
.
Attribute | Description |
---|---|
|
ID of the block that contains the block with progress in the form of numbered or text identifiers of a specific form. |
|
The ID of the block that contains the blocks with separate forms. |
|
ID of the element that goes to the next step. |
|
ID of the element that goes to the previous step. |