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
100 0

List calculations

Task Hours Rate Total
zxczxczx 0

List calculations

Task Hours Rate Total
fdgsdfg 5,555 444 2466.42
sdffff 0

List calculations

Task Hours Rate Total
pepe 15 12 180
0

List calculations

Task Hours Rate Total
asdf 2 20 40

List calculations

Task Hours Rate Total
test 8 40 320
0

List calculations

Task Hours Rate Total
School 45 5,600 252
Barker college 50 600 30000
0

List calculations

Task Hours Rate Total
dsasdas 5,250 550 2887.5

List calculations

Task Hours Rate Total
100.99 123.12 12433.89

List calculations

Task Hours Rate Total
ABCD 10 100 1000
EFGH 1 1,000,000,000 0

List calculations

Task Hours Rate Total
A 0 0

List calculations

Task Hours Rate Total
0 0

List calculations

Task Hours Rate Total
asd 0 0 0

List calculations

Task Hours Rate Total
1 20 20

List calculations

Task Hours Rate Total
sfdg 4 4.50 18

List calculations

Task Hours Rate Total
2312312 213 213 45369

List calculations

Task Hours Rate Total
home 7 8 56

List calculations

Task Hours Rate Total
lkh 5 66 330

List calculations

Task Hours Rate Total
3 3 3 9

List calculations

Task Hours Rate Total
21 10 210

List calculations

Task Hours Rate Total
samile 2 22 44

List calculations

Task Hours Rate Total
Er 5 34 170

List calculations

Task Hours Rate Total
charlie 5 1.5 7.5

List calculations

Task Hours Rate Total
52 6 312
100 19 1900

List calculations

Task Hours Rate Total
1 0
2 0
More about GravityView (making Views for Gravity Forms)

Share this Post