Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter aldinlapinig

    (@aldinlapinig)

    I’ve figured it out using this HTML code:

    <label>Interest Rate*</label>
    <input type=”number” required name=”price” min=”0.94″ value=”6.94″ step=”any” style=”width: 100%;”>

    Plugin Author codepeople

    (@codepeople)

    Hello @aldinlapinig,

    Entering the input fields into the “HTML Content” field does not ensure you can use them in the equations, as occurs with the other fields inserted in the form.

    So, I recommend you to assign the step attribute to a number field inserted in the form.

    Assuming the number field is the fieldname1 (as the fields names are assigned dynamically, you should use the corresponding field’s name in your form)

    – Insert a “HTML Content” field in the form.

    – Enter as its content the following piece of code:

    
    <script>
    fbuilderjQuery(document).one('showHideDepEvent', function(){
    jQuery('[id*="fieldname1_"]').attr('step', '0.01');
    });
    </script>
    

    and that’s all.
    Best regards.

    Thread Starter aldinlapinig

    (@aldinlapinig)

    Great stuff! Thank you for responding on my query. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Input Field with Decimal Places Implementation’ is closed to new replies.