Skip to main content
7 votes
Accepted

Unsure whether to use Sprout Forms or code forms regularly

Sprout Forms offers you a lot of the same functionality as standard Craft Entries. Both Sprout Forms and Entries allow you to create front-end forms that allow users to submit data to the database. ...
Ben Parizek's user avatar
  • 13.5k
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

Ajax submissions using SproutForms

I figured it out (edited with my FORM mark-up as well): I'm actually rendering the FORM using the SproutForms method: <div class="submit-via-ajax"> {{ craft.sproutForms.displayForm(block....
carbonjoetunis's user avatar
4 votes
Accepted

Customize the field.html file for Sprout Forms

To override field.html you will also have to provide an override for tab.html and errors.html. The field.html template is a bit more complex and the Twig code to get it to work depends on a few ...
Ben Parizek's user avatar
  • 13.5k
4 votes

Sprout Forms `onSaveEntry` event

Adding an event handler is not something you do through the control panel. What you need to do is create a plugin (pluginfactory.io makes this fairly easy), and in your plugin's main class, you have ...
Marion Newlevant's user avatar
3 votes
Accepted

Write into Sprout Forms from another plugin

When leveraging another plugin programmatically, you will typically want to use the service layer. In your case, the SproutForms_EntriesService.php is where the saveEntry action gets processed. The ...
Ben Parizek's user avatar
  • 13.5k
3 votes
Accepted

Sprout Email compiled_templates

You can delete that folder entirely and it will get re-created on the next request that needs a template. If it's not updating, chances are you've got some PHP byte-level caching extension installed ...
Brad Bell's user avatar
  • 67.5k
3 votes

Sprout Forms issue: form not submitting

Probably you are caching the page. You can't cache a sprout form. The csrf will be the same for all the users.
martijnvanonz's user avatar
3 votes
Accepted

Best way to delete submitted data in Sprout Forms?

Click the checkbox at the top to select all of them.
darylknight's user avatar
  • 3,290
3 votes

How to insert a Sprout Form into a new page in Craft CMS

If you don't have a local development environment setup, you will need FTP access to the server where Craft is installed to edit templates. The one line of code cannot be copied and pasted into a ...
Cavell Blood's user avatar
3 votes
Accepted

How can I make Sprout Invisible Captcha plugin works using AJAX submission?

Based on your code - and our comments - you need something like this: <form id="someFormId"> <input type="hidden" name="action" value="sproutForms/entries/saveEntry"> <input ...
Robin Schambach's user avatar
3 votes
Accepted

Using Dynamic values in the Reply To field in Sprout Forms Notifications

Ran into the same issue, asked the support team, and they confirmed it's a bug. Workaround is to comment out this line: https://github.com/barrelstrength/craft-sprout-base/blob/v2/src/app/email/...
Seb's user avatar
  • 197
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

Sprout reports timing out on thousands of records

As you suspected, Sprout Reports is not designed to handle large quantities of data if it's more than your server can handle. As for how many records you could export, it really just depends on how ...
Ben Parizek's user avatar
  • 13.5k
3 votes
Accepted

Sprout Forms - include hidden fields in notification emails

By default, several fields do not display in the default Email Template such as the Hidden Field, Invisible Field, Section Heading Field, Private Notes Field, and Custom HTML field. If you'd like to ...
Ben Parizek's user avatar
  • 13.5k
3 votes
Accepted

How to display submission data on a thank you page with sprout forms?

You can grab the last submitted entry on the thank you page. So using the example, you should be able to do lastEntry.id
dmatthams's user avatar
  • 2,492
3 votes

Help understanding hooks

First I think it helps to clear up some terminology... I've seen a few devs (myself included sometimes!) using the word "hooks" when they really mean "events". For me at least this ...
James Smith's user avatar
  • 5,344
2 votes
Accepted

Sprout Forms file upload

For the record, the issue, as determined from the comments above was that the Asset field settings did not allow the type of file that was being uploaded. Updating the Asset field settings to allow ...
Ben Parizek's user avatar
  • 13.5k
2 votes
Accepted

Sprout Email not triggering from Sprout Form

Variables in Craft are case sensitive. You'll run into the same error if you try to output the Craft {{ siteName }} global as {{ SITENAME }}. Updating the casing to {contactFullName} or {{ object....
Ben Parizek's user avatar
  • 13.5k
2 votes

Creating on-demand Sprout Fields

Sounds like Matrix is the right field for your situation. The harder part is how you decide to implement this on the front-end. While your question doesn't say it explicitly, it is tagged plugin-...
Ben Parizek's user avatar
  • 13.5k
2 votes

Prepopulate Sprout Form using an entry

A solution is now available in the Sprout Forms documentation: Example > Pre-populating a Field.
Romain P.'s user avatar
  • 1,852
2 votes
Accepted

Dynamic subject for form notification email

Yes. You can use the value of your custom field subject in two ways: Shorthand Syntax: {subject} Object Syntax {{ object.subject }} If you want to perform any conditional logic, you will need to ...
Ben Parizek's user avatar
  • 13.5k
2 votes

Sprout Forms: returning error question

Apologies - resolved. Case sensitivity issue with variable (signUp not signup)
Cole Henley's user avatar
  • 1,741
2 votes

User Registration Form with Sprout Forms

You don't need to use Sprout Forms to create users on your website. Take a look at the Craft documentation for an example.
Luke Pearce's user avatar
  • 3,863
2 votes

Sprout Form submit: The CSRF token could not be verified!

The form code in the template was wrapped in a {% cache %} tag.
Adam Menczykowski's user avatar
2 votes
Accepted

Sprout Forms - Possible to reduce available field types in form builder

Sprout Forms for Craft 3 only displays fields that can be used on the form. Craft 2 answer: In Sprout Forms for Craft 2, it is not possible to toggle the visibility of the fields available, it ...
Ben Parizek's user avatar
  • 13.5k
2 votes

Customize markup of email select field in Sprout Forms

This feature has been added in Sprout Fields v2.1.0 You can now use the Email Select field via custom HTML and obfuscate email addresses. I've added an example in the docs: {% set contact = craft....
Ben Parizek's user avatar
  • 13.5k
2 votes
Accepted

Sprout Forms -- How to link to individual entries on the front-end

A note on Elements Craft allows plugins to create custom Element Types. Elements have the option to support URIs, but it is not required. Out of the box, Craft currently has 7 Element Types and only ...
Ben Parizek's user avatar
  • 13.5k
2 votes
Accepted

Using Asset folder variables with Sprout Forms

I have created a form with a hidden field and asset field. The hidden field appears before the asset field: We'll want to make the email field required because we are using that field in the auto-...
Andre L.'s user avatar
  • 357
2 votes

Creating default object from empty value - Sprout Email

This error can be triggered when you try to use a variable name in your Sprout Email template or fields that is not present in the submitted Form data. One example where this can occur is if you try ...
Ben Parizek's user avatar
  • 13.5k

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