• Resolved benspr

    (@benspr)


    Hi,

    I have a slider for a dollar amount that goes from $0-$500. I’d like to add text to the caption once the user reaches $500 that either simply adds a “+” or some text like “or more.”

    So the final caption would look like “$500+” or “$500 or more,” but only when the slider reaches the max number.

    How do I do this?

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

    (@codepeople)

    Hello @benspr,

    My recommendation in this case is enter something like:

    {0}<span class="sign"></span>

    as the slider caption, and then, if the slider control is for example the fieldname1, use an equation similar to the code below, from a calculated field in the form:

    (function(){
    
    if(fieldname1 >= 500 ) jQuery('.sign').html('+');
    else jQuery('.sign').html('');
    
    /** The rest of code of the equation here **/
    })()

    and that’s all.
    Best regards.

    Thread Starter benspr

    (@benspr)

    Perfect, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding text to the caption at only one end of slider’ is closed to new replies.