Support » Plugin: Calculated Fields Form » How to increase value in decimal in number field

  • Resolved abahalkar

    (@abahalkar)


    Hello Team,

    We are using number field and we have set default value to 0.11 as well as we set Min value to 0.01 and Max value 2.00 and we want to increase/decrease value by 0.01 while clicking on arrows of number field.

    We have referred your document but not got solution.

    Please guide us on our issue.

    Thanks

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

    (@codepeople)

    Hello @abahalkar,

    In this case you will need some additional code, for example, assuming that you want set the step of the fieldname1 field (where the fieldname1 field is number field with the “Number” option selected for the “Number Format” attribute ). You simply should insert a “HTML Content” field in the form with the following piece of code as its content:

    <script>
    jQuery(window).on('load', function(){
    jQuery('[id*="fieldname1_"]').attr('step', 0.01);
    });
    </script>

    and that’s all.
    Best regards.

    Thread Starter abahalkar

    (@abahalkar)

    Hello Team,

    Thank you very much for your kind support. Your solution has worked.

    Thanks once again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to increase value in decimal in number field’ is closed to new replies.