Added
- Added Map to Lead and Map to Custom Module to the SuiteCRM integration, so forms can create Leads and records in custom modules as well as Contacts. (#3164)
Changed
- Searchable dropdowns now show option group names as headings, with their options indented beneath them, instead of looking like options.
- Searchable dropdowns that allow one choice now mark the chosen option in the list with a check mark.
- Searchable dropdowns that allow one choice now show their clear button beside the dropdown arrow instead of straight after the chosen value. A search now takes the place of the chosen value while it’s typed, instead of following it.
- Exporting forms from the Forms index now requires the Export forms permission, matching the Import/Export page.
- Moving a form into another form group, from the form builder, the Move form action on the Forms index or an import, now needs permission to manage forms in that group. A form’s own Manage “{form}” form permission no longer covers moving it.
- GraphQL requests through a public schema now return Recipients field options, default values and submission values as recipient tokens instead of email addresses, the same as the rendered form. Mutations already accept these tokens. Private schemas with an access token still return the email addresses.
- Updated Tiptap to 3.31.4 for rich text editing in the control panel and Moment to 2.31.0.
- A date a submission already has is no longer checked against the Date/Time field’s Min Date and Max Date when the submission is saved again, so changing its status, marking it as spam or editing its other fields still works once a limit such as Today’s Date/Time has moved past it. New and changed dates are still checked.
- Hidden Recipients fields now send to their default recipients when an email address is posted for them while
compatibilityModeis disabled. - Payments that take their amount from a Calculations field now have every Calculations field in the form worked out again on the server, and are refused if a submitted answer is different. Browser code that rounds, caps or replaces a calculation through its evaluate events can no longer change an answer in these forms. Formatting an answer for display still works.
- Formie now requires
symfony/expression-language6.2 or later. - Only admins can now add environment variables to integration and CAPTCHA settings. Other users who change where an integration connects must enter credentials that come from environment variables, or masked CAPTCHA secrets, again.
Deprecated
- Deprecated posting email addresses to hidden Recipients fields. Post the field’s rendered value instead.
Fixed
- Fixed two high-severity information disclosure vulnerabilities.
- Fixed a high-severity vulnerability.
- Fixed a moderate-severity vulnerability.
- Fixed two moderate-severity privilege escalation vulnerabilities.
- Fixed four moderate-severity cross-site scripting vulnerabilities.
- Fixed three moderate-severity information disclosure vulnerabilities.
- Fixed two low-severity information disclosure vulnerabilities.
- Fixed every front-end render of a form with a File Upload field creating an empty Temporary Uploads folder for the visitor’s session, even when nothing was uploaded. Sites with lots of visitors or crawlers could build up thousands of folders, which slowed Craft’s folder lookups.
- Fixed the Outseta integration updating the first person in the Outseta account on every submission, instead of the person with the submitted email.
- Fixed hidden Recipients fields populated with
craft.formie.populateFormValues()sending their notification to an invalid address instead of the populated recipients. - Fixed Calculations fields in server-rendered forms using the answer of a field that conditions hide, such as a hidden field’s default value.
- Fixed Calculations fields in server-rendered forms not updating when conditions showed or hid a field their formula uses.
- Fixed Calculations formulas that pick a Repeater row by index reading the wrong row in server-rendered forms after an earlier row was deleted.
- Fixed Calculations fields in client-rendered forms reading Table columns as empty, and reading Agree fields differently from server-rendered forms.
- Fixed every submission after the first failing to save on PostgreSQL when the form uses
setRelations(). Sites already affected are repaired when migrations run. - Fixed submissions failing when
setRelations()was given the same element more than once, including by calling it twice. - Fixed User element integrations on all but one form losing their User Group when upgrading from Formie 2 or Formie 3. Upgraded sites are repaired when migrations run, except forms saved since the upgrade, which need their group selected again. (#2206)
- Fixed Date fields using the Dropdowns display type filling in the first year, month and day (or 0:00 AM) when left blank. Optional fields saved a date the visitor never chose, forms with a Min Date couldn’t be submitted, and required date dropdowns couldn’t be enforced.
- Fixed the Move form action on the Forms index letting users move forms into form groups they can’t manage, and listing those groups in its menu.
- Fixed the Move form action on multi-site installs returning an error and moving only some of the selected forms when the target form group’s site settings exclude a form.
- Fixed updating an existing form through an import moving it into a form group the user can’t manage forms in.
- Fixed permanently deleting a submission also deleting an uploaded file that another submission still relates to through
form.setRelations(), when the form is set to delete file uploads. - Fixed the Sent Notifications sidebar listing forms newest first. Forms are now listed by title within their form groups, matching the Submissions sidebar. (#3163)
- Fixed AJAX forms set to reset after submission keeping Table rows the visitor added, and Repeater rows and signatures on earlier pages, which were then saved with the next visitor’s submission.
- Fixed Signature fields growing taller for several seconds after they appeared, and a signature started during that time, or while the window was resized, leaving the pad unable to draw until the page was reloaded. The pad is back to its Signature canvas height (
--formie-signature-height, 8rem by default). - Fixed searchable dropdowns that allow one choice growing taller after an option was picked, until the visitor clicked elsewhere, when the option’s label left too little room beside it for the search input. Fields in narrow columns showed it most.
- Fixed searchable dropdowns that allow several choices showing chosen options slightly higher than the search text beside them, and growing taller once the first option was chosen.
- Fixed the options in a searchable dropdown’s list using larger text than the field itself.
- Fixed File Upload fields using the File Input display type rendering a
valueattribute on their file input, which made Vue and React front ends that mount the form’s markup throw an error. (#3161) - Fixed the Campaign and Snaptcha integrations, and the Calendar, Events and Commerce Product element integrations, being unavailable when their plugin is installed from a development branch such as
dev-main. Integrations and fields that don’t set a minimum version for their required plugin no longer check its version. - Fixed the log entry for a submission rejected by the honeypot including what was entered into it when
logSubmissionValuesisfalse. (#3162) - Fixed Spam Protection → Spam Rules saying a setting was overridden by
config/formie.php. Spam settings in that file have no effect, and the screen now says so. - Fixed form groups’ Allowed Submission Statuses and Enabled Sites pointing at different statuses and sites on other environments, which could save submissions with the wrong status, reject every submission, or enable forms on the wrong sites. Project config now stores them by UID. Existing settings are converted when migrations run, so run
craft upfirst on the environment where you edit form groups, and check the converted settings it lists before committingconfig/project. - Fixed the Recent Form Submissions widget leaving out submissions made on the last day of a custom date range, its line chart showing today instead of every day in the range, months appearing out of order, and a line chart with only a From or To date breaking the dashboard.
- Fixed pruning incomplete, spam and data-retention submissions using more memory the more submissions it pruned, which could exhaust memory on large backlogs. Submissions are now pruned in batches.
- Fixed forms created from a stencil not getting its Redirect Entry, so visitors weren’t redirected after submitting, and Save as a new stencil leaving the form’s redirect entry out of the new stencil. Stencils also now keep the redirect entry’s site, and removing a project stencil’s redirect entry now sticks.
- Fixed duplicating a form, or using Save as a new form, on a multi-site install losing the form’s translations for other sites. Save as a new form and Save as a new stencil while viewing another site also no longer turn that site’s translations into the source content of the new form or stencil.
- Fixed adding a synced field from Existing fields while editing a form on a site other than its source site failing to save with “Field translations are outside this form.” Changes made to the field on that site before saving are saved as that site’s translations. (#3166)
- Fixed fields added while editing a form on a site other than its source site keeping that site’s Required setting when it was later changed on the source site.
- Fixed Date fields with Min Date or Max Date set to Today’s Date/Time using UTC’s date instead of the site’s, which could reject today’s date or accept tomorrow’s, and the error naming the day before or after a Min Date or Max Date on sites outside UTC.
- Fixed creating or duplicating a form copying all of the creator’s user group permissions to their own account, so removing them from the group, or changing the group’s permissions, no longer took those permissions away.
- Fixed
renderOptionsmissing from custompage.htmlandfield.htmlform template overrides, which threw an error with devMode on. - Fixed Salesforce integrations failing to send a Campaign Member, after creating the Contact or Account, on sites with devMode enabled when Map to Lead was off or a duplicate lead was turned into a Task.
- Fixed an error when opening a submission in the control panel as a user without permission to edit any site, on multi-site installs. They now get a “forbidden” response.
- Fixed the Sent Notifications index running a database query for every row to look up its form.
- Fixed the User, Last Edited By, Payment Status and Send Notification columns on the Submissions index running database queries for every row.
- Fixed an error when running
formie/forms/listwith no forms or export files and devMode enabled. - Fixed the date filter on the submissions index showing an hour too few or too many submissions when the range ended on a daylight-saving change, and using the browser’s time zone instead of the site’s. On phones, the filter and the export dialog also no longer start from the day before the one picked.
- Fixed Summary fields staying empty on server-rendered forms mounted from another allowed origin, such as with the React, Vue or Web Components packages.
- Fixed server-rendered forms using the
cross-origin-publicrequest profile showing “Request failed (403)” after a successful submission when the front end is served from the same domain as Craft. - Fixed the deprecated
registerAssets()andregisterFormAssets()helpers loading a form’s CSS and JavaScript when they’re set to Manual, and ignoring changes amodifyFormRenderOptionsevent handler makes to the render options, such as turning them off. - Fixed Date/Time fields saved through GraphQL mutations being shifted by the site’s UTC offset, and date-only fields storing a time. Dates are now stored as sent, ignoring any offset, so a value returned by GraphQL can be sent back unchanged.
- Fixed Date/Time fields using the Calendar (Simple) or Calendar (Advanced) display types not enforcing their Min Date and Max Date when a submission is saved, and the Calendar (Simple) date input not limiting the dates that can be picked.
- Fixed Date/Time fields using the Text Inputs or Dropdowns display types on server-rendered forms only showing their Min Date and Max Date error after the form was sent. The browser now checks the date first and shows the same message.
- Fixed forms on statically cached pages failing with “Form instance has expired. Reload the form.” once the page was more than seven days old, when the template overrides the form’s settings or the form has a Hidden field with a default value other than Custom Value. Pages cached before updating need to be cached again. (#3165)
- Fixed
form.setSettings({ redirectUrl: '…' })in templates not redirecting when the form’s After Completion is set to show a message, reload or reset the page. AredirectUrlset this way now redirects, as it did in Formie 3 and asform.setRedirectUrl()does, unlesscompletionBehavioris set in the same call. - Fixed front-end edits of a completed submission ignoring a redirect set on the edit form with
form.setRedirectUrl(), and showing an untranslatable “Submission completed.” message. Edits now follow a redirect set on the edit form or show “Submission saved.”, and still don’t run After Completion, which is for new submissions. - Fixed client-rendered forms set to reset after completion failing on the next submission without a page reload.
- Fixed required Date/Time fields using the Dropdowns or Text Inputs display types losing their validation when upgrading from Formie 2. Sites that have already upgraded aren’t changed, so check whether those fields are still required.
- Fixed updating a form from an import keeping custom form, email and PDF templates that were cleared in the exported form.
- Fixed manually sending an email notification from a submission reporting success when the email couldn’t be sent. It now shows an error instead.
- Fixed project stencils using the wrong notification email and PDF templates after being deployed to another environment. Project config now stores them by UID. Once every environment has been updated, resave each project stencil on the environment where its templates are set correctly before committing
config/project.