List Number Field Gravity Forms

GravityWPGravityForms, List0 Comments

Do you need a Number field in your Gravity Forms list column? And to make calculations within a list row or column? No need to look further, the plugin of ovann86 does just that: Turn your list field columns into repeatable number fields.

Demo Number for List Field

  • TaskHoursRateTotal 
    Add a new row

How to use?

Just install the plugin and make a Gravity Form with a List Field. You will see this extra options:

Different languages

You can translate this plugin by using the .po file. Download it as a zip here below. Based on version 1.3.3 of this plugin.

Upload the translation files in this folder on your server:

wp-content/languages/plugins/

So, for the Dutch (Nederlandse) translation for example, it should look like this on your server:

wp-content/languages/plugins/list-field-number-format-for-gravity-forms-nl_NL.po
wp-content/languages/plugins/list-field-number-format-for-gravity-forms-nl_NL.mo

Solution for problem with calculation decimals / currency

You can experience some problems with this plugin when you use it in the European notation or Euro currency. There is a work-around for that. Not perfect, but it solves the problem for now. Just add this to your funtions.php file in your theme:

add_filter( 'gform_currencies', 'update_currency' );
function update_currency( $currencies ) {
    $currencies['EUR'] = array(
        'name'               => __( 'Euro', 'gravityforms' ),
        'symbol_left'        => '€',
        'symbol_right'       => '',
        'symbol_padding'     => ' ',
        'thousand_separator' => ' ',
        'decimal_separator'  => ',',
        'decimals'           => 0
    );

    return $currencies;
}

It makes the euro notation without decimals and it uses a ‘space’ as thousands separator in stead of a comma or point. This makes all the calculations work perfectly.

What does it look like in GravityView?

List calculations
Task Hours Rate Total
test 1 1,000 1
Task Hours Rate Total
Test 1 12 10 120
Test 2 18 80 1440
Test 3 9 44.32 398.88
Task Hours Rate Total
12 12 12 144
Task Hours Rate Total
3 500 1500
Task Hours Rate Total
eat 2 4 8
sleep 4 1 4
List calculations
More about GravityView (making Views for Gravity Forms)

Share this Post