Gravity Wiz

Magically enhanced tutorials, snippets and plugins for Gravity Forms!

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

Gravity Forms Auto List Field

Sync the number of rows in your List fields with a field value or capture the row count in a field.

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

  • View All Perks
  • Buy Gravity Perks

What does it do?

GF Auto List Field automatically syncs the number of rows in a List field with the value of a Number or Quantity field. It can also count the number of List field rows and use that value in a calculation.

Features

  • Sync List field rows to a field value.
    Automatically add/remove list field rows based on the value of a Number, Quantity, Single Product or Calculated Product field.
  • Count number of list field rows.
    Count the number of list field rows and output that value into a field.
  • Better UX, better data.
    Users will appreciate the streamlined process. You’ll appreciate having all the information you need.
  • Automatic updates.
    Get updates and the latest features right in your dashboard.
  • Legendary support.
    We’re here to help! And we mean it.

Documentation

  1. How do I enable this functionality?
  2. Feature Details
    1. Automatically Add and Remove List Field Rows
    2. Count List Field Rows
  3. Security
  4. Known Limitations
  5. Integrations
    1. Copy Cat
  6. Translations
  7. Hooks
  8. FAQs
  9. Related Resources

How do I enable this functionality?

After installing and activating Gravity Forms Auto list Field, all List fields will show the Perks tab in within the form editor. Let’s have a look how to use it.

Add a Number field to your form.
Add a List field or open an existing List field to modify its settings.
Navigate to the Perks tab and check Enable Auto List Field and map the Trigger Field to your Number field.

Feature Details

Automatically Add and Remove List Field Rows

GF Auto List Fields can automatically add and remove list field rows based on the value in a Number, Quantity, Single Product or Calculated Product field.

First, check Enable Auto List Field under the Perks tab of the List field and map your Number or Quantity field in the Trigger Field setting.

Once the field is mapped, GF Auto List Fields will automatically adjust the number of list field rows in real-time.

Count List Field Rows

To automatically count the number of List field rows in a Number or Quantity field, use the new :count merge tag modifier in the Number field’s calculation.

For example, to count the number of list field rows for a List field whose ID is 1, use the following:

{List:1:count}

Once inserted, GF Auto List Field will count the number of rows automatically.

Security

You can trust data submitted via Auto List Field.

When auto-adding List field rows, GF Auto List Field will ensure that the number of List field rows submitted matches the number captured in the trigger field.

When capturing the List field count via our :count modifier, Gravity Forms will recalculate the entire calculation on submission ensuring the result has not been tampered with.

Known Limitations

  • You cannot capture a List field’s row count directly in a Single or Calculated Product’s quantity input. There are two workarounds.

    1. Add a separate Quantity field and associate it with the desired Product field.
    2. Capture the row count in a Number field and use Copy Cat to copy the value to the product’s quantity input.

    If you’d like to see better support for Product fields’ inline quantity input, let us know

Integrations

Copy Cat

Gravity Forms Copy Cat is a versatile perk that allows you to copy the values from one field to another. It even supports copying from one List field to another and copying other field types (like Checkboxes!) to List fields.

Translations

You can use the free Loco Translate plugin to create translations for any of our Perks. If you’ve never used Loco translate before, here’s a tutorial written for beginners.

Hooks

  • gpalf_init_script_args
  • gpalf_supported_field_types
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.

FAQs

No FAQs yet. What do you want to know?

Related Resources

  • Require All Columns of List Field — Make sure you get all the information you need the first time. Use this snippet to require every input in your List field to be filled out – or – require only the most important columns.
  • Use List Field As Choices — Use the values entered into a List field as choices in another field. For example, collect members of a group in a List field and populate those members into activity-specific Checkbox fields. Check only the members who will participate in that activity.
  • Numbering List Field Rows — Append a number to your List field rows with the power of CSS.

Perk Deets

  • Version 1.0.2
  • Updated February 8, 2022
  • Released February 1, 2022
  • View Changelog

Changelog

1.0.2

  • Fixed an issue where a negative value in the trigger field hides all the list field rows.

1.0.1

  • Removed gpal_supported_field_types filter in favor of gpalf_supported_field_types.

1.0

  • Added support for adding List fields into formulas in the following format {Label:ID:count}.
  • Added keyup listener on trigger input to add/remove rows without needing to blur/un-focus the trigger input.
  • Improved form submission behavior by truncating any additional rows beyond the number allowed by the source field.
  • Updated settings to use Gravity Perks' child setting styles rather than its own.
  • Updated to use GP_Plugin class provided by Gravity Perks.
  • Fixed fatal error that occurred when configured trigger field no longer exists.
  • Fixed issue where multi-column List field headers were misaligned with their column as the icon row cells were hidden but not the icons header cell.
  • Fixed PHP notice in GP_Auto_List_Field::is_form_with_list_count_merge_tag().

0.9.5

  • Improved support for quantity field in Gravity Forms 2.5.
  • Fixed issue where Auto List Field setting would not show in Field Settings.

0.9.4

  • Improved compatibility with Gravity Forms 2.5.

0.9.3

  • Added 'gpal_supported_field_types' filter to allow modifying which field types can trigger auto-List-field rows.

0.9.2

  • Added 'gpalf_should_hide_list_buttons' filter to allow specifying whether List field buttons should be hidden; if List field buttons are not hidden, maximum row count is not enforced.
  • Added 'gpalf_init_script_args' filter to allow modifying options used to initialize frontend script.

0.9.1

  • Updated "Triggger Field" setting to not show administrative fields.

0.9

  • "Besides black art, there is only automation and mechanization." - Federico Garcia Lorca
  • Special thanks to Scott Schaper for sponsoring the initial development of this perk!

All Perks

  • GF Address Autocomplete
  • GF Advanced Calculations
  • GF Auto List Field
  • GF Auto Login
  • GF Better User Activation
  • GF Blocklist
  • 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 Entry Blocks
  • GF Expand Textareas
  • GF File Upload Pro
  • GF Inventory
  • 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 Notification Scheduler
  • GF Page Transitions
  • 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 QR Code
  • GF Randomizer
  • GF Read Only
  • GF Reload Form
  • GF Terms Of Service
  • GF Unique ID
  • GF Word Count

Copyright © 2022 · Powered by WordPress · Gravity Wiz LLC

  • Support
  • Affiliates
  • About
  • Sitemap
  • Terms & Conditions of Use
  • Privacy Policy
  • Cookies Policy

Get access to hundreds of Gravity Forms plugins for free!

Enter your email and receive a list of our most popular free snippets and plugins for Gravity Forms.

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