Gravity Wiz

Magically enhanced tutorials, snippets and plugins for Gravity Forms!

  • Gravity Perks
    • Gravity Perks
    • Tutorials & Snippets
    • About
  • Support
    • Documentation
    • Support
    • Account

Gravity Forms Word Count

Limit the amount of words a user can submit inside Single Line, Paragraph and Post Body text fields.

This plugin is part of Gravity Perks, a suite of 32+ essential Gravity Forms addons with support you can count on.

  • View All Perks
  • Buy Gravity Perks

What does it do?

This plugin allows you to limit the amount of words a user can submit inside Single Line, Paragraph and Post Body text fields. This works for both a minimum amount of words and/or a maximum amount of words.

Features

  • Supports Single Line Text, Paragraph, and Post Body fields.
    Limit number of words in a variety of field types.
  • Set minimum and maximum word counts.
    Flexible options to set word count ranges that meet your needs.
  • Integrates with Gravity Forms Pay Per Word.
    Combine to set minimum/maximum word counts and charge per word.
  • Automatic updates.
    Get updates and latest features right in your dashboard.
  • Awesome support.
    We’re here to help! And we mean it.

Documentation

  1. How do I enable this functionality?
  2. Feature Details
    1. Minimum Word Count
    2. Maximum Word Count
  3. Hooks
  4. Related Articles

How do I enable this functionality?

After you have installed and activated Gravity Forms Word Count, word counts can be enforced on any supported field. Let’s step through that process.

Add a Single Line Text, Paragraph, or Post Body field to your form.
Open the field settings and navigate to the Perks tab. Insert a Min Word Count and/or a Max Word Count.

That’s all there is to it. The word count will automatically be enforced on the field.


Feature Details

Minimum Word Count

If a minimum word count is enforced on the form and the user submits the form with too few words, the form will display a validation error.

Minimum count not met

When a form is submitted with a field that contains the Word Count perk settings this perk intercepts the form and counts the amount of words submitted within the field. If the field contains too few or too many words then the form is returned with an error.

Maximum Word Count

Maximum word counts are enforced differently. GF Word Count will automatically prevent the user from typing more spaces once the limit is met. If the user tries to bypass the limit by copy/pasting more words, the limit is still enforced.

In the event the user bypasses the automatic Javascript enforcement, the form will throw a validation error when submitted.

Automatic truncation can be disabled with the gpwc_script_args hook.

Hooks

  • gpwc_script_args
  • gpwc_word_count
Gravity Forms has hundreds of hooks. Check out our Gravity Forms Hook Reference for the most thorough guide to Gravity Forms’ many actions and filters.

Related Articles

  • How to Use Gravity Forms to Create a Quiz (and Analyze Results)
  • How to Create a Gravity Forms Survey and Enhance It With Gravity Perks

Perk Deets

  • Version 1.4.6
  • Updated June 1, 2020
  • Released April 17, 2013
  • View Changelog

Changelog

1.4.6

  • Added gpwc_word_count PHP filter.
  • Updated plugin author.

1.4.5

  • Added translation support.

1.4.4

  • Fixed error when no field had Rich Text Editor enabled

1.4.3

  • Added support for GF 2.0 Rich Text Editor on Paragraph Text fields

1.4.2

  • Updated to use GP_Bootstrap
  • Fixed styling issue with left and right aligned form labels.

1.4.1

  • Added support for displaying min word counter below the field (like the max word counter)

1.4

  • Fixed issue where fields with word counts were validated even when hidden via conditional logic

1.3.9

  • Added class "gp-word-count-label" to word count label (below input)

1.3.8

  • Fixed issue where textareaCounter script required gravityforms.js but was not including it

1.3.7

  • Added "truncate" option to script default args; allows the disabling of truncation

1.3.6

  • Added "gpwc_word_count" for filtering word count

1.3.5

  • Added support for origWordCount and passed it to textareaCounterUpdate event; allows custom functionality based on whether the text was truncated

1.3.4

  • Fixed issue where pasting in text could result in negative wordCount reported (was still correctly truncated)

1.3.3

  • Fixed styling issue where Max field setting was offset from the Min field setting

1.3.2

  • Fixed issue with field setting tooltips
  • Fixed styling issue where field settings were too close together

1.3.1

  • Added 'gpwc_script_args' filter for specifying labels used to indicate word counts

1.3

  • Added support for word count on Post Title fields

1.2.3

  • Fixed issue where fields on later pages were validated before the page they are on is submitted
  • Moved (and updated) documentation to GravityWiz.com

1.2.2

  • Fixed issue where line breaks and carriage returns were not accounted for when calculating word count

1.2.1

  • Fixed fatal error with missing Markdown() function
  • Fixed issue where if max word count not specified, it returned an error every time

All Perks

  • GF Auto Login
  • GF Better User Activation
  • GF Blacklist
  • GF Conditional Logic Dates
  • GF Conditional Pricing
  • GF Copy Cat
  • GF Date Time Calculator
  • GF Disable Entry Creation
  • GF Easy Passthrough
  • GF eCommerce Fields
  • GF Email Users
  • GF Expand Textareas
  • GF File Upload Pro
  • GF Limit Checkboxes
  • GF Limit Choices
  • GF Limit Dates
  • GF Limit Submissions
  • GF Live Preview
  • GF Media Library
  • GF Multi-Page Navigation
  • GF Nested Forms
  • GF Pay Per Word
  • GF PayPal One-time Fee
  • GF Placeholder
  • GF Populate Anything
  • GF Post Content Merge Tags
  • GF Preview Submission
  • GF Price Range
  • GF Read Only
  • GF Reload Form
  • GF Terms Of Service
  • GF Unique ID
  • GF Word Count

Copyright © 2021 · Powered by WordPress · Gravity Wiz LLC

  • Support
  • Affiliates
  • About
  • Sitemap
  • Gravity Perks
    ▼
    • Gravity Perks
    • Tutorials & Snippets
    • About
  • Support
    ▼
    • Documentation
    • Support
    • Account