• Resolved badmax69

    (@badmax69)


    I have the result of a calculated field. I want to use this as max value in a slider. How is this possible?

Viewing 4 replies - 16 through 19 (of 19 total)
  • its approved now….I suck

    tested it as well.

    Plugin Author codepeople

    (@codepeople)

    Hello @hawker75,

    Please, edit your equation as follows:

    
    (function(){
    	var r = fieldname21,
    		s = jQuery('.cff-slider-field .slider'),
    		t = jQuery('.dfield .slider-container'),
    		v = MIN(r,s.slider('value'));
    	jQuery('.cff-slider-field .right-corner').html(r);
    	s.slider('option','max', r);
    	s.slider('value',v);
    	jQuery('.slider-container div:last').html(v);
    	jQuery('.dfield .slide-container').html(12);
    	return r;
    })()
    

    Best regards.

    Yes!! I was close. I had the same code except I was missing “div:last”

    Thank you very very much! I’ll publish a Review!

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Transferring a result to a slider max value’ is closed to new replies.