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 ...
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 ...
user avatar
  • 1,171
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 ...
user avatar
  • 421
3 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.
user avatar
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 ...
user avatar
  • 3,959
3 votes
Accepted

Countries Field for Freeform

The answer: after you create a "select field", name it whatever you want - in this case country - and then add it to a form. Once you have done that, select that field within the form and ...
user avatar
  • 1,321
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, ...
user avatar
  • 66.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 ...
user avatar
  • 121
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. ...
user avatar
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 = $...
user avatar
  • 165
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/...
user avatar
2 votes
Accepted

Unique input IDs in Freeform

Solution for Freeform 3: Preventing duplicated field id: Set a custom field id prefix. Using the form handle might be a good id, as long as you're not using the same form twice on the same page. ...
user avatar
  • 190
2 votes
Accepted

Is it possible/recommended to use Solspace Freeform for a front-end user login form?

It’s potentially possible with a custom module, but it would be far less effort (not to mention, more secure) to just apply the solspace form classes to the regular log in form.
user avatar
  • 2,462
2 votes

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

Is this a terrible idea? Is there a better way to accomplish this? One thing that makes a great designer/developer is knowing when to say no. It could be done but it's probably not worth it. If you ...
user avatar
  • 6,477
2 votes

Can the Return URL within forms link to an external url?

You can control the URL that the browser sends form requests to using the action attribute. If you leave this attribute empty or don't include it at all, the request will just go to same page (URL) ...
user avatar
  • 6,820
1 vote

Render Field from FieldHandler in FreeForm Craft CMS

To pull an individual field from a form, use the form.get("myFieldHandle") method. Simple example using the field.render() method: {% set form = craft.freeform.form("myFormHandle") %} {{ form.get("...
user avatar
  • 2,573
1 vote

FreeForm and Vue - Hidden Forms in Modal - Manually refresh the Craft CRSF token and Freeform JS Honeypot field

Not sure if it's a good call or not but you could have an endpoint that just has the {{ craft.app.request.csrfToken }} outputting on it. Poll(GET) that using ajax (axios or whatever you're using in ...
user avatar
1 vote

Freeform Plugin: Success Page and Submission ID - Template not Found

Did you set up a route and assign a template to it? contact/success/{{ number }}
user avatar
  • 451
1 vote

FreeForm and HubSpot - Current Page

It would be fairly easy to create a hidden field and read the page URL into it. As for the title, is your form an embed inside the channel entries call? Then it's pretty easy to get the title as well. ...
user avatar
  • 451
1 vote

Unable able to update Freeform Pro from 2.2 to 2.5

Solution: Instead of using the Craft updater, execute a composer require composer require solspace/craft3-freeform-pro
user avatar
  • 111
1 vote
Accepted

Solspace Freeform pass variable to form

You can pass values from other Craft elements or from URL segments, etc to your Freeform forms. Specifically when using with the Element fieldtype, when wanting to override the return URL, you can do ...
user avatar
  • 1,390
1 vote

Multiple forms on same page.. Solspace Freeform

Thanks for reporting this issue. We'll have a fix available for this in the next release of Freeform. :) In the meantime, affected customers can contact us for a patched copy.
user avatar
  • 1,390
1 vote

Freeform plugin unique submission amount

You could also add andWhere to your query. Look to the table 'freeform_fields' for the field who you want to use for the query end remember the id of the field. In the table 'freeform_submissions' ...
user avatar
1 vote

Freeform plugin unique submission amount

Looks like there's a Craft 2 plugin that exposes PHP's array_unique method to Twig. So to continue on the example you linked to, it would be something like this with that plugin installed: {# ...
user avatar
  • 66.5k
1 vote

Freeform Lite update on Craft 2 deleted tables

But on my remote server it deleted two thirds of the tables in the db. That sounds like some update failure happened, Craft tried to roll-back and restore the database from its pre-update attempt ...
user avatar
  • 66.5k
1 vote

Freeform email notifications going to spam

Email that is sent from your server is often marked as spam, this is not anything to do with either Craft or Freeform but with the fact that the server you use may not be trusted by email providers. ...
user avatar
  • 83
1 vote
Accepted

Search/Filter Freeform submissions by field value

Here is the workaround I've resorted to using in the meantime. {# Initiate the hash in which we'll store matching submissions. #} {% set matchingSubmissions = [] %} {# Loop through all ...
user avatar
  • 616
1 vote

Search/Filter Freeform submissions by field value

Unfortunately this currently isn't possible. However, we've added it to the feature requests list and will revisit adding this in the not-too-distant future. :)
user avatar
  • 1,390
1 vote

Search/Filter Freeform submissions by field value

This might not work, but you can try it like so: {% set submissionCount = craft.freeform.submissions({ form: 'myAmazingForm', fieldWithValue: '123', }).count() %}
user avatar
  • 35.9k
1 vote

Duplicating fields in Freeform

Using the Craft Element or Predefined Data feature in Freeform, you can easily setup options (from Craft Entries, States, Number ranges, etc) for when you're creating additional fields. If you're ...
user avatar
  • 1,390

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