Releases: verbb/formie
Releases · verbb/formie
2.1.28
Fixed
- Fixed an error when parsing variable tokens.
2.1.27
Added
- Added “Page URI” and “Page Name” to HubSpot integration for Forms.
- Added support for Form Template custom field validation for forms.
Changed
- Klaviyo Email Marketing integration now orders lists alphabetically by name.
- Klaviyo Email Marketing integration now loads more than 10 lists.
- Improved HubSpot CRM integration for HubSpot Forms, where fields don’t have a label.
Fixed
- Fixed an edge-case with variables, where cached data matched against incorrect submission values.
- Fixed an error when fetching Summary field HTML.
- Fixed an error when fetching Signature field image.
- Fixed an error with Klaviyo CRM integration.
3.0.3
Fixed
- Fix a compatibility issue with
nystudio107/craft-plugin-vite
5.0.2.
2.1.26
Fixed
- Fix a compatibility issue with
nystudio107/craft-plugin-vite
4.0.12.
3.0.2
Added
- Added
initSubmit
JS API function to allow programmatic submissions. - Added “Tenant” setting to Microsoft Dynamics 365 CRM integration.
Fixed
- Fixed an error when refreshing tokens on some installs.
- Fixed an error when creating nested fields in some cases.
- Fixed an error rendering element fields.
- Fixed translations.
2.1.25
Added
- Add
initSubmit
JS API function to allow programmatic submissions.
Fixed
- Fix an error when refreshing tokens on some installs.
3.0.1
Added
- Added
processSubmit
JS API function to allow submission processing to continue if preventing submission via theonBeforeFormieSubmit
JS event. - Added support for WEBP flag images for Phone fields. Add a
.no-webp
class in your form to opt-out of this behaviour to fallback to PNG flags.
Fixed
- Fixed errors when attaching some files to support requests.
- Fixed Date fields with a default value, or min/max date not having their values normalized correctly.
- Fixed an error when refreshing tokens via JS, for a non-top-level webroot site.
- Fixed an error when populating Element fields when also limiting field values.
- Fixed an error when trying to order Submissions by their title in the control panel.
- Fixed an error where conditional Email Notifications were being triggered twice for new submissions.
- Fixed an issue where missing required field values for Nested or Sub-Field fields weren’t being marked as required during validation.
- Fixed an error where conditional Email Notifications were being triggered twice for new submissions.
- Fixed some modal button spacing issues.
- Fixed an error viewing Submissions with Radio Button fields with numeric values in the control panel.
2.1.24
Added
- Added
processSubmit
JS API function to allow submission processing to continue if preventing submission via theonBeforeFormieSubmit
JS event.
Fixed
- Fixed errors when attaching some files to support requests.
- Fixed Date fields with a default value, or min/max date not having their values normalized correctly.
- Fixed an error when viewing Forms in the control panel for a specific template, and improve Form element index performance.
- Fixed an error when refreshing tokens via JS, for a non-top-level webroot site.
- Fixed an error when populating Element fields when also limiting field values.
3.0.0
Breaking Changes
- Repeater and Group fields values now no longer use elements, just plain arrays. This brings several performance improvements and simplification to these fields.
- OAuth-based integrations now use the Auth Module to handle authentication under the hood.
- References to
subfield
is nowsubField
for various classes. - Element fields (Categories, Entries, File Upload, Products, Tags, Users, Variants) now use their public URL in email notifications.
- Options fields (Checkboxes, Dropdown, Radio) now use their option labels in email notifications.
- Changed
fieldInputContainer
tofieldInputWrapper
for Theme Config and.fui-input-container
class to.fui-input-wrapper
for fields. - Date fields now no longer use Flatpickr as a date-picker by default.
- Changed the value returned for Address fields when queried via GraphQL.
- Change Field’s
name
tolabel
for GraphQL queries. - Change Page’s
name
tolabel
for GraphQL queries.
Added
- Added new user interface for sub-field (Address, Date, and Name).
- Added the ability to re-order sub-fields.
- Added the ability to edit the full settings of sub-field fields.
- Added ability to send email notifications or trigger integrations when unmarking a submission as spam.
- Added the ability to set the control panel or public URL for element fields (Categories, Entries, File Upload, Products, Tags, Users, Variants).
- Added the ability to set the label or value for options fields (Checkboxes, Dropdown, Radio).
- Added the ability to override “All Form Fields”, “All Non Empty Fields” and “All Visible Fields” variables with Email Notification templates.
- Added “Calendar (Simple)” and “Calendar (Advanced)” to Date field display types, replacing “Use Date Picker”.
- Added CSS Layers support for front-end CSS.
- Fields moved in and out of Group fields now have their content moved as well.
- Fields can now be moved to and from Group/Repeater fields.
- Added “Required Field Indicator” for forms, to either show an asterisk for required fields (default) or show optional for non-required fields.
- Added the
form.setPageSettings()
function to override page settings in your Twig templates. - Added support for Group and Repeater fields to be added as an existing field, or a synced field in the form builder.
- Added support for Repeater fields to use conditions (within their own row of fields).
- Added support for all CRM integrations to only fetch data objects for ones that are enabled in the form builder integration settings.
- Added keyboard navigation to variable picker dropdown.
- Added the ability to type
{
in variable picker components to autocomplete variables. - Added
handle
to Email Notifications that can be accessed directly, instead of by their ID. - Added
isFinalPage
in JSON response for Ajax-based forms. - Added “All Submissions Behaviour” plugin setting.
- Added the ability to store custom data (
customSettings
) on a Notification, to store extra data against a Notification. - Added the ability to modify Notification tabs and field settings (schema) via
Notifications::EVENT_MODIFY_NOTIFICATION_SCHEMA
. - You can now get submission field values via dot-notation for nested values. e.g.
submission.getFieldValue('group.text')
orsubmission.getFieldValue('repeater.1.text')
- You can now query submission field values via dot-notation for nested values. e.g.
submission.field('group.text').one()
orsubmission.field('repeater.1.text').one()
- Integrations can now populate a
$context
property with arbitrary data that's stored before processing, and accessible in the queue job. - Allow
craft.formie.renderJs
to set JS attributes for scripts. - Added
data-fui-alert-error
anddata-fui-alert-success
attributes on front-end alerts. - Added
data-field-label
attribute to labels/legends for fields. - Added
data-validation
to fields, to denote what validators to use for the field. - Added
initRow
to Repeater field JS events. - Added client-side validation for min/max word/character limit for text fields.
- Added the current rowId for the
data-repeater-row
attribute for Repeater fields. - Added
onFormieLoaded
JS event. - Added double-clicking a page in the form builder now opens the pages editor.
- Added “Recipients” to the Email Notifications index table.
- Added Table node to rich text editor settings (used for numerous form, field and notification settings).
- Added the ability for Recipients fields to pre-populate the field via their option label.
- Added
verbb\formie\fields\subfields
classes to better handle sub-field inner fields. - Added
NestedField::EVENT_MODIFY_NESTED_FIELD_LAYOUT
to modify the field layout of Nested or Sub-Fields. - Added
verbb\formie\base\CosmeticField
class. - Added
verbb\formie\base\ElementField
class. - Added
verbb\formie\base\MultiNestedField
class. - Added
verbb\formie\base\OptionsField
class. - Added
verbb\formie\base\SingleNestedField
class. - Added
verbb\formie\base\SubField
class. - Added
Field::getValueForVariable()
to allow fields to handle logic for variables. - Added
Field::getValueForCondition()
for handling serialization for condition evaluation. - Added
Field::getValueForEmailPreview()
for fields to define their own preview for email notifications. - Added
Field::fieldKey
to represent the handles of a field and any parent field. e.g.group.text
orrepeater.text
. - Added
Field:: lowerClassName()
. - Added
Field::isDisabled
. - Added
Field::enabled
to allow you to disable a field. - Added
Submission::hasStatusChanged()
andSubmission::hasSpamChanged()
.
Changed
- Now requires PHP
8.2.0+
. - Now requires Craft
5.0.0+
. - Updated Vue, Vite, Formkit and all JS dependencies to their latest versions.
- Updated Feed Me integration support for Feed Me 6+.
- Updated Freeform migration to support Freeform 5+.
- Submission content no longer have their own content tables. Content is now in a single
content
column, in yourformie_submissions
database table. - Submissions now have Create/Save/Delete user permissions.
- Submissions now have separate view and manage user permissions.
- Sent Notifications now have “All” or per-form user permissions for View/Resend/Delete.
Formie::log()
is nowFormie::info()
.Integration::log()
is nowIntegration::info()
.- Updated form builder modals and implement better modal accessibility.
- Switched Stripe payments to use “Payment Web Element”, adding the ability to use non-credit card payments like Apple Pay, AfterPay, etc
- Revamped front-end validation and removed
bouncer.js
. - Submissions now send any email notifications that have status conditions when a completed submission is saved.
- Field errors now only show their first error when validation fails.
- Re-organise validator rules and add client-side match field validator.
data-field-handle
for fields now includes the full dot-notation “fieldKey” of the field, including any parent. Soname.firstName
,group.text
orrepeater.new1.text
.- Captchas for GraphQL mutations now don’t require a mandatory variables parameter to be named the same as their input type.
- Querying fields and rows via GraphQL now default to only returned enabled fields.
- Front-end form JavaScript now waits until the form has entered the viewable area on the page to be initialized.
- The
onFormieInit
now fires on every initialization of a form, when it’s visible on the page. - Captchas now smartly load whenever they have entered the viewable area on the page. This greatly improves page-load performance when the form is initially hidden (in a modal for example).
- Sub-fields now extend from the
verbb\formie\base\SingleNestedField
and inherit many behaviours from Group fields. - Phone fields are no longer
verbb\formie\base\SubField
fields. - Sub-field fields now store their field config in their own row in the
formie_fields
database table, under their own layout (page, row, field). - Update GraphQL interfaces for all fields to explicitly define fields to query. Previously these were automatically done via Reflection.
- Integration field mapping now uses
field:fieldHandle
syntax for fields. - Integration field mapping now uses dot-notation (
field:group.text
) syntax for nested fields. - Conditions (fields, pages, notifications) now uses
field:fieldHandle
syntax for fields. - Conditions (fields, pages, notifications) now uses dot-notation (
field:group.text
) syntax for nested fields. - Submissions element index now show incomplete and spam submissions alongside completed submissions.
- Changed form
Title
references to formName
. - Changed
fieldErrors
andfieldError
elements fromul
andli
respectively todiv
. - HubSpot CRM integration now automatically saves the
hubspotutk
cookie at the time of submission, to be sent with API requests. This means you now no longer need to map a form field to ensure thehubspotutk
tracking cookie is sent. nextPageIndex
in JSON response for Ajax-based forms now returnsnull
when submitting on the final page to matchnextPageId
.- Update Date field’s
availableDaysOfWeek
to return an array of strings as opposed to a JSON-encoded array for GraphQL. - Email Notification field templates now no longer output a paragraph tag and the field label.
- Recipients fields values are now included in Email Notification content.
- Updated the
intl-tel-input
package for Phone field validation and handling. - Date fields now show the required state on the outer label for Calendar and Date Picker display types.
- Name field values now return the full name including prefix and middle name (if provided).
- Address Country and Name Prefix fields now use their respective label values for string representations of their value.
- Adjusted dropzone size for form builder...
1.6.45
Fixed
- Fixed an issue where redirect URLs for forms may contain invalid content.