Gravity Forms
Usage
Open Appearance → Customize → Settings → Gravity Forms when the Gravity Forms plugin is active. Form submission limit caps how many times one visitor (by IP address) can submit forms in an hour. Debug hidden fields shows hidden form fields to logged-in admins while you troubleshoot. Block Tor submissions turns away form submissions sent through the Tor network. Allow form post creation lets forms create posts from their entries and adds Gravity Forms' Post Fields group back to the form editor.
These settings apply to every Gravity Form on the site, not one form at a time.
When to use it
- Contact or lead forms that attract spam. Lower the hourly limit before adding a CAPTCHA.
- Busy campaigns where you want protection against automated bursts of submissions.
- Checking hidden or conditional fields that aren't behaving as expected.
- A flood of spam from addresses that change on every submission, which is often the Tor network. Turn on Block Tor submissions while it lasts; some legitimate visitors use Tor for privacy, so turn it off again afterwards.
- A form that should publish what visitors send as posts, such as a story or testimonial submission form. Turn on Allow form post creation so the form creates posts and you can add Post Fields to it.
Tips
- When a visitor hits the limit, they see a fixed message asking them to try again in an hour.
- Only admins see hidden fields with Debug hidden fields. Turn it off when you're done testing.
- To check one form page without the setting, add
?ds_form_debug=1to its address. It works for anyone, including logged-out visitors, and only shows them their own values, so you can check a live form (for example from a campaign link) without logging in. - Pop-up, footer newsletter, and page forms all count toward the same limit.
- Block Tor submissions quietly drops a Tor submission after showing the visitor the usual confirmation. The list of Tor addresses refreshes itself once a day; if it cannot be refreshed for a few days, submissions go through again until it can.
- Post Fields (Title, Body, Excerpt, Tags, Category, Post Image, Custom Field) are hidden while Allow form post creation is off, and forms that already have them create no posts. Their entries are still saved with every answer, and notifications and confirmations work as usual. For an ordinary message, use a Paragraph Text field, not Body or Custom Field.
- With Allow form post creation on, any one of those fields makes every entry also create a post under Posts (a draft, unless the form's Post Status setting says otherwise).
- Allow form post creation stays off unless you turn it on, including on sites whose forms used to create posts. Turn it on only when a form should publish what visitors send as posts.
- When a notification has Attach uploaded files on and the files are too big for an email (over 18 MB in total, or less on a site short of memory), the smallest files that fit stay attached and the email links to the rest. Nothing to set up. To keep forms from taking in very large files at all, lower Maximum File Size on the File Upload field.
- Email, Phone, Name and Address fields fill in from the visitor's browser (autocomplete) on every form, with nothing to set up. A field where you turned on Enable Autocomplete yourself keeps your values.
- Single Line Text fields fill in too when the whole label names what they ask for, such as Company, Company Name, Organization, Business Name, Email, Email Address, Phone, Phone Number, Telephone, Cell Phone, First Name, Last Name, Full Name, Zip Code or Postal Code. Capitals and a trailing
*or:don't matter. Anything longer ("Company website", "Emergency phone contact", "Your email") gets nothing, because a wrong autocomplete value fails an ADA audit just like a missing one. A form that asks for the same thing twice (a guest's First Name and Email as well as the visitor's) gets none on those labels, so a browser never fills the visitor's details into someone else's fields. For a field like that, turn on Enable Autocomplete under the field's Advanced tab and pick the value, or use the Email and Phone field types. - Don't put the same form twice on one page (in the page and again in the footer, say): both copies share ids, so labels point at the wrong fields. Use a copy of the form for the second place.
- If the settings seem to do nothing, check that Gravity Forms is installed and active.
Settings
Gravity Forms
Turn away form submissions sent through the Tor network. Some legitimate visitors use Tor for privacy; turn this on only while a site is being flooded.
Off by default.
Let forms create posts. When on, the Post Fields group (Title, Body, Custom Field and others) shows when adding fields, and every entry from a form with one of these fields also creates a post. When off, those forms still save entries and send notifications, but create no posts.
Off by default.