Add field
Blueberry Add Field dynamic fields creation.
How to use?
Copy-paste the following
<script>
near the
end of your pages under
JS Implementing Plugins to enable it.
Copy-paste the init function under
JS Plugins Init., before the closing
</body>
tag, to
enable it.
With libraries
Methods
Options can be passed via data attributes or JavaScript. For
data attributes, append the option name to
data-hs-add-field-options='{}'
Attributes | Description | |
---|---|---|
|
Trigger for add fields |
.js-create-field
|
|
Trigger for delete field |
.js-delete-field
|
|
Limit of the fields | 10 |
|
Count created by default fields | 1 |
|
Separator for name attribute | - |
|
Call when field is added |
function() {}
|
|
Call when field is removed |
function() {}
|