• Hi, This is another handy & useful add-on by you.
    Before you released this, I was use to with this code, which I modified slightly to add step option in list fields number column. This ‘step’ option helps me to increase or decrease number value by mouse with given steps.

    add_filter( 'gform_column_input_content_38_287_3', 'change_column_content_number', 10, 6 ); //Form-ID_Field-ID_Column-number
    
    function change_column_content_number( $input, $input_info, $field, $text, $value, $form_id ) {
        //build field name, must match List field syntax to be processed correctly
        $input_field_name = 'input_' . $field->id . '[]';
        $tabindex = GFCommon::get_tabindex();
        $new_input = '<input type="number" name="' . $input_field_name . '" ' . $tabindex . ' value='. $value . ' max= "100.00" min= "0.00" step="0.01"/>';
        return $new_input;
    }

    Is it possible to add this feature on your plugin?

    https://www.ads-software.com/plugins/list-field-number-format-for-gravity-forms/

Viewing 1 replies (of 1 total)
  • Plugin Author ovann86

    (@ovann86)

    Hey,

    I’ll have to think it through first.

    I’m not sure how widely supported the ‘number’ type inputs are across all browsers. Although from what I’ve seen they’re a lot easier to use in mobile devices.

    I’m worried that it will break formatting. I tend to avoid the ‘number’ type HTML5 field because it doesn’t allow non-number characters – such as commas.

    I’m also not sure it supports for the ‘French’ style of numbers, i.e. 9.9999,99 – or at least not in a straight forward way (requires the website template to have the correct language code in the HTML tags)

    What I’m thinking I can do is adding an option, ‘Step’, next to ‘min’ and ‘max’ – but only showing (and making it work) when the number format is ‘9,999.99’ – not currency because it may be the $9.999,99 format.

    Would this work for you if it were possible?

Viewing 1 replies (of 1 total)
  • The topic ‘Step Option in Number’ is closed to new replies.