• Resolved ccwpcl

    (@ccwpcl)


    Hi,

    When I inspect my html, it shows my input number and currency fields as
    input[type=”text”. Is there anyway to change them to input[type=”number”]so they open up a number keyboard in responsive mode.

    Best regards,

    PS. I noticed in the form settings tab that there is a check-box for Enable autocompletion. What does that actually do.

    https://wordpress.org/plugins/calculated-fields-form/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    If you set the type of input field to “number”, won’t be possible to use custom symbols as thousands separator, or for decimals, but if you prefer to use the attribute type=”number” in both type of fields, please follow the steps below:

    1. Open the files: “/wp-content/plugins/calculated-fields-form/js/fields-public/02_fbuilder.fnumber.js” and “/wp-content/plugins/calculated-fields-form/js/fields-public/02_fbuilder.fcurrency.js”, with the text editor your choice.

    2. Go to the snippet of code:

    type=”text”

    and replace it like follow:

    type=”number”

    and that’s all.

    About the autocompletion, it is a feature in browsers to suggest the values of fields in the form, with values used previously.

    Best regards.

    Thread Starter ccwpcl

    (@ccwpcl)

    Thanks,
    That works fine but, the number vanishes as soon as I move my cursor away from the field.

    Best regards,

    Plugin Author codepeople

    (@codepeople)

    Hi,

    That’s happening because after modify the type of field won’t be possible to configure the currency fields to be formatted dynamically, because the symbols used for currency and thousands separator can be invalid on input fields of type number.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Input number field type’ is closed to new replies.