=== Plugin Name === Contributors: GravityWP Donate link: http://gravitywp.com/support/ Tags: gravity forms, number field, count, form, forms, gravity form Requires at least: 3.0.1 Tested up to: 4.3 Stable tag: 4.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Count the total for multiple entries of a number field in Gravity Forms and show it on your website with a shortcode. == Description == [GravityWP Count](http://gravitywp.com/plugins/count/) is the best way to calculate the total for a number field with values from multiple entries in Gravity Forms. ### Calculate total of number field It started with the question: “how can I get a total from a number field accumulated for multiple entries in Gravity Forms”. For example: the first entry has a number field where the submitter entered 5, the 2nd submitted 10 and the 3rd submitted 2. The total is 17 for all the entries… but is there a plugin to do that counting for me? Yes, there is! [Try the Demo here](http://gravitywp.com/plugins/count/) We have been developing the plugin with help from different users. Please contribute by leaving your questions & suggestions in the comments. ### Shortcodes to use Here you find the shortcodes you can use to calculate the totals of number fields in multiple Gravity Forms entries. = gravitywp_count = If you want to count the total of a number field from multiple entries, use this shortcode: [gravitywp_count formid="2" field="4" decimals="2" dec_point="." thousands_sep="," ] **formid**: This is the id of the form you want to target your shortcode at. It’s in orange **field**: This is the field number you want to target. Make sure this is a number field! **decimals**: This is how many decimals you want to show (after the point (if you are in the US or England) or after the comma (if you are in Europe or the rest of the world)). You can type 0 (zero) if you only want to show whole numbers. You can type 1, 2, 3, 4 or 10 or more to show more decimal numbers. **dec_point**: This is what decimal point you want to use. In the USA and England this is a point. In Europe, the comma is used to show the decimal point. For example: USA: 1.23 and Europe: 1,23. **thousands_sep**: The thousands seperator is to, what it says, the notation you use to seperate thousands. In the USA this is a comma, in Europa this is a point. For example a million in USA is: 1,000,000.00 and in Europe it is: 1.000.000,00. You can define the thousands seperator in the shortcode. = gravitywp_count1 (one filter field) = If you want to use the Count Plugin and filter on 1 field (text, dropdown, radio button), use this shortcode: [gravitywp_count1 formid="2" field="4" filter_field="3" filter_value="IT developer" decimals="2" dec_point="." thousands_sep="," ] **filter_field**: this is the Field ID you want to use in your filter. Go to your Gravity Form, go to the Field (text, dropdown, radio button) you want to use as your filter and write down the Field ID number to use in filter_field in your shortcode. **filter_value**: write here the exact value that is in your text, radio button or dropdown. If you clicked ‘show values’, use the text under Value. = gravitywp_count2 (two filter fields) = [gravitywp_count2 formid="2" field="4" filter_field="3" filter_value="IT developer" filter_field2="5" filter_value2="41 and older" decimals="2" dec_point="." thousands_sep="," ] **filter_field2**: this is the Field ID you want to use in your second filter. **filter_value2**: write here the exact value that is in your text, radio button or dropdown (for the second filter!). If you clicked ‘show values’, use the text under Value. == Installation == Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or install the plugin through the WordPress plugins screen directly. == Changelog == = 0.2 = * Added decimal and thousand seperator * Added multiple shortcodes (for different filtering options) * Updated the readme.txt = 0.1 = * Added only the function to count the total of a number field for multiple entries in Gravity Forms