Hello @andyro,
Thank you very much for using our plugin. In this case, you will need a calculated field as an auxiliary.
I’ll try to describe the process with a hypothetical example.
Assuming the Slider field configured as range is the fieldname1.
- Insert a calculated field in the form (I’ll call it fieldname2) and enter the following piece of code as its equation:
fieldname1[1]-fieldname1[0]
Since the calculated field is used as an auxiliary, it is not essential to your form interface. So, you can hide it by ticking a checkbox in its settings.
- Finally, enter the following tag as the caption attribute of the slider field:
<span data-cff-field="fieldname2"></span>
Best regards.
Thread Starter
andyro
(@andyro)
Brilliant! That works – thanks so much for the prompt reply, now I can finish my work for the day 🙂 (we have the dev version and use it all the time, solid plugin, I wish you had an iOS app that did the same stuff!)
Thread Starter
andyro
(@andyro)
work in progress. will finish tomorrow – but you can see the ‘delta T returned’ field is the one that fills in the caption, however the caption does not show under the slider – is there a way I can get it to do that also? https://www.thomsonarchitecture.ca/ventilation-and-tedi-calculator/
Hello @andyro,
You have installed an outdated version of the plugin that does not include support for cff-data-field attributes.
You can install the latest plugin update, or set the value by coding from the fieldname50 equation using jQuery.
Best regards.
Thread Starter
andyro
(@andyro)
Thanks, WP shows I am using Version 6.1.75, in plugins there is no update option. Do you have a direct download URI?
Hello @andyro,
You are using the commercial plugin distribution. You should contact us directly via the plugin website. Contact Us.
Best regads.
Thread Starter
andyro
(@andyro)
One quick question per your suggestion re. caption values using the span tag, I wanted to display two units in one slider, namely liters/second and the same volume in units of m3/hr, which is calculated in a hidden field. It works as you can see on slider 3. https://www.thomsonarchitecture.ca/ventilation-and-tedi-calculator/ – however it only appears when the slider is moving then it vanishes – is there a way to make it stick?
Hello @
Please insert an “HTML Content” field in your form and enter the following piece of code as its content:
<script>
jQuery(document).on('change', '[id*="fieldname45_"]', function(){
setTimeout(function(){
getField('fieldname67').jQueryRef().find(':input').change();
});
});
</script>
Best regards.
Thread Starter
andyro
(@andyro)
Amazing again, thank you!