Skip to main content
6 votes

Looking for an advanced form plugin for Craft CMS

To answer your questions in regards to how they will fit with Freeform... If what you mean by pre-populating fields with existing data is being able to fill fields with data from other elements, ...
Solspace's user avatar
  • 1,410
5 votes
Accepted

Freeform Success Notice in Template

You can add a param to your returnUrl in the form composer then check the template for the param. For example: You redirect to /contact?success {% set successParam = craft.request.getParam('success'...
Jan_dh's user avatar
  • 858
5 votes
Accepted

Freeform ReturnURL to same page

Have you tried using the {{ craft.request.url }} variable in your returnUrl setting? Also you should be able to format it like so: returnUrl: craft.request.url ~ "?success" More details about the ...
Matt Shearing's user avatar
5 votes
Accepted

How to omit certain tag from (% cache %)

Unfortunately, the vanilla {% cache %} tag doesn't have a way to escape or ignore certain content. The obvious workaround is to have more than one {% cache %} tag, where the content that shouldn't be ...
Mats Mikkel Rummelhoff's user avatar
4 votes

Freeform: Remove default styling injection

This is probably injected as part of the form template that's used to render the form. In the Freeform section of the CP, if you edit a form and choose the 'cog' icon in the right-hand pane to access ...
Martin Spain's user avatar
  • 1,579
4 votes
Accepted

Is it possible to localize Freeform fields and labels?

You can render the fields by your own and use the twig translate filter and do it with translation files. But I think there is no way to do it via the CP currently.
davidhellmann's user avatar
3 votes
Accepted

Freeform forms fieldtype

From the Freeform docs: The Freeform Form (or Submissions) fieldtype lets the user assign any Freeform form (or form submissions) to any element: a section entry, categories, assets, etc. In a ...
Sam's user avatar
  • 421
3 votes

Loop through entry titles in a select field

The issue is you don't have a variable named input. I changed the code a little by included a variable named value. To make sure the proper option is selected you would need to pass back to the ...
a-am's user avatar
  • 2,857
3 votes

Looking for an advanced form plugin for Craft CMS

I work with Sprout and can answer your questions with regards to Sprout Forms. 1. It should be possible to prepopulate fields with existing data This will happen by default in a lot of standard use ...
Ben Parizek's user avatar
  • 13.5k
3 votes
Accepted

Solspace freeform webhook

There is an entire section here that discusses API integrations, including the ones that come with Freeform. http://docs.solspace.com/craft/freeform/v2/
Jim Wyse's user avatar
  • 451
3 votes
Accepted

Can you call a controller method from within a plugin/module in Craft 3?

Based on your goal, I don't recommend taking this approach for the technical debt reasons in my comment, however your actual question is still a valid one. You can call any controller's method from a ...
James Smith's user avatar
  • 5,344
3 votes
Accepted

How can I pass a variable to Freeform's formatting template so that it's available to Twig?

This could potentially be handled a few different ways... 1. Move the Form Title location Remove the Title from the formatting template and set up your main template loading the form to look something ...
Solspace's user avatar
  • 1,410
2 votes
Accepted

Passing params to Freeform’s `render` tag

That isn't possible right now, the things you can pass to the render tag are listed here under customAttributes. We might, however, add such functionality in the future.
Solspace's user avatar
  • 1,410
2 votes

Error reporting Freeform submission jumps to top of page

By setting the action: "#errortag" seems to stop the form submitting if there are no errors. So instead I have added the following code and this seems to work; {% if form.hasErrors %} {% includejs %}...
Terry Upton's user avatar
  • 1,894
2 votes

Q: Freeform - have users update form on the frontend

I was able to find a solution. It's probably not the best way to go, but it works. In the form add a new action: <input type="hidden" name="action" value="freeform/submissions/save"> which ...
Lucas's user avatar
  • 61
2 votes

How to set simple yes/no checkbox using Freeform

This still appears to be an issue with checkboxes on Freeform Craft 1.6.2. The mailing list checkbox is repopulating as expected but the checkbox field is not repopulating in a multi-step form after ...
Doug St. John's user avatar
2 votes

How to set simple yes/no checkbox using Freeform

I don't think this has anything to do with your code, and actually appears to be a bug in Freeform itself, where the Submission object and email notifications are showing the value as whatever the ...
Solspace's user avatar
  • 1,410
2 votes

How to add two variables into one conditional

It looks like according to your code this (and Aran's) solution should work except for one small difference... if you are testing for this: entry.title ~ category.title The value parameter (what is ...
Alan Miller's user avatar
2 votes
Accepted

Send freeform email notification to manually entered recipient address

The recipientsEmail field should be an Email fieldtype, and in Composer you need to set the notification template in the Field Property Editor column (on right) for that field and it'll send an email ...
Solspace's user avatar
  • 1,410
2 votes
Accepted

How to access a freeform field object's properties from an event

To answer my own question, this is what I found. The answer is to use get... methods. craft()->on( "freeform_submissions.onBeforeSave", function (Event $event) { $submission = $...
Sheldon's user avatar
  • 165
2 votes

No Underscores Allowed in Freeform Field Handles?

Not likely to be an issue for anyone in the future but just incase someone is looking at this... Turns out Freeform should be able to handle underscores in field handles. Just an oversight on the ...
Mike's user avatar
  • 719
2 votes
Accepted

Form question - freeform /mailchimp

Freeform includes mail list integration for MailChimp, Constant Contact (pro only) and Campaign Monitor (pro only). As per their documentation, form fields can be mapped to your mail list. You can ...
Sam's user avatar
  • 421
2 votes

Freeform Mailchimp List - Target

Add the mailing list "field" in the form you want by dragging it from the left sidebar to the form. Click on the field when it's added. In the right sidebar, change the dropdown field "Mailing Lists"...
manomoul's user avatar
2 votes
Accepted

Error reporting Freeform submission jumps to top of page despite auto form anchor

We've recently discovered that this feature is not always reliable unfortunately. However, we're working on addressing this and coming up with a better solution in the coming weeks. Sorry for any ...
Solspace's user avatar
  • 1,410
2 votes
Accepted

CraftCMS 2 -> 3 Migration error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE)

That error means that your Craft installation is choking on one of Craft's Composer dependencies that is using newer PHP 7.1 syntax and your current box is using PHP 7.0.x. Usually when that happens, ...
Brad Bell's user avatar
  • 67.5k
2 votes

AJAX CSRF Producing Inconsistent Results

Trying to understand the issue in general. These are my thoughts, not sure if they will help you. I assume that by caching, you mean some sort of full page cache and the comments below are based on ...
RoussKS's user avatar
  • 121
2 votes
Accepted

Solspace Freeform upload multiple image files

There appears to be 2 errors in your code. name="uploadPhotos.handle[]" should be name="uploadPhotos[]", assuming your field name is uploadPhotos. The handle part is unnecessary, unless you were using ...
Solspace's user avatar
  • 1,410
2 votes
Accepted

Set email recipient based on value of select in freeform - possible?

FreeForm actually has a Dynamic Recipients field that sounds like it will do what you're wanting. I believe you can choose to have it displayed as a select field, radio buttons, or checkboxes. ...
Jalen Davenport's user avatar
  • 3,045
2 votes
Accepted

Iterate through all rows of specific page using Freeform?

Or I could actually read all the documentation: Method getRows() As in {% for row in page.getRows() %}
Amanda Lutz's user avatar
2 votes
Accepted

Freeform: How do I detect if a form was submitted?

One way you could do this is on the backend via a module and the FreeForm events: Run composer require ramsey/uuid in the root directory of your project Add the following lines to the top of modules/...
Jalen Davenport's user avatar
  • 3,045

Only top scored, non community-wiki answers of a minimum length are eligible