Download the PHP package mblode/sprout-forms-tables without Composer
On this page you can find all versions of the php package mblode/sprout-forms-tables. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mblode/sprout-forms-tables
More information about mblode/sprout-forms-tables
Files in mblode/sprout-forms-tables
Package sprout-forms-tables
Short Description Tables Field for Sprout Forms
License MIT
Informations about the package sprout-forms-tables
Tables Field for Sprout Forms (Craft CMS 3)
Custom tables field that integrates with Sprout Forms.
This plugin adds a custom table field to Barrel Strength's Sprout Forms. Simply drag and drop into your forms, choose the table column headings and you are good to go.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require "mblode/sprout-forms-tables"
- In the Control Panel, go to Settings → Plugins and click the “Install” button for Tables Field for Sprout Forms.
Custom Notification Email
If you would like to output the table nicely in the notification email, you will have to create a custom email.html
template. Here is my basic custom email template that more nicely formats the table values. For example, you could add this file to site-name/web/_emails/email.html
.
Once you have created the email.html
, update the Sprout Forms notification's general settings to point the templates at your own template. Following the example, you would set the template to _emails
.
Lastly, update the "Tables field for Sprout Forms" plugin settings by changing the JSON Decode Table Values
to true. If all goes well, you can test the notification by clicking on the eye icon under the Sprout Forms Notifications page in the Craft back-end.
Brought to you by Matthew Blode