• Resolved lewisp91

    (@lewisp91)


    I currently have a slider set to 0.1 increments.

    However, the caption shows 2 decimal places (example: 2.40 instead of 2.4).

    How can I format the slider caption to only show 1 decimal place?

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

    (@codepeople)

    Hello @lewisp91

    Thank you very much for using our plugin. I’m sorry, but in the current plugin version, you need to do it by coding. Assuming the slider field is the fieldname123, please, insert an “HTML Content” field in the form and enter the following piece of code as its content:

    <script>
    jQuery(document).on('change', 'input[id*="fieldname123_"]', function(){
    jQuery('#'+this.name+'_caption').html(this.value);
    });
    </script>

    Best regards.

    Thread Starter lewisp91

    (@lewisp91)

    Amazing, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to format the slider caption?’ is closed to new replies.