• Resolved andreazak

    (@andreazak)


    Hi, I need to use decimal on number field like this:
    [number* field-70 min:45.5 max:70.5 placeholder “from 45.5 to 70.5”]
    Also if use “step” function, decimal aren’t accepted…

    there are solutions ?
    Thank you, Andrea

Viewing 2 replies - 1 through 2 (of 2 total)
  • hi @andreazak

    for decimals in min and max attributes i suggest to replace the cf7 tag with the standard html tag

    so replace
    [number* field-70 min:45.5 max:70.5 placeholder “from 45.5 to 70.5”]

    with
    <input type=”number” name=”field-70″ placeholder=”from 45.5 to 70.5″ value=”45.5″ class=”wpcf7-form-control wpcf7-number wpcf7-validates-as-number” min=”45.5″ max=”70.5″ aria-invalid=”false” />

    Thread Starter andreazak

    (@andreazak)

    Thanks Erik for your solutions,
    I am using other plugins such as calculators and conditional fields, and I needed the input created by contact form7 .. in any case I will do without the comma because it does not seem to me there are other solutions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Min and Max number’ is closed to new replies.