Hello @yasbadri
Thank you very much for using our plugin. Please, insert an “HTML Content” field in the form and enter the following piece of code as its content:
<script>
fbuilderjQuery(document).one('showHideDepEvent', function(){
getField('fieldname5').jQueryRef().find('input').prop('step', 5);});
</script>
Best regards.
Thanks for your come back, but this code not run correctly. The value gone to max and just the min button run. Here is a screenshot to better understand. https://www.loom.com/share/6e161ea18b764fe8b2a170163f12d902
Hello @yasbadri
Thank you very much. I detected the issue cause and will include the definitive solution in the next plugin update. To fix it in your plugin copy, please, replace the content on the “HTML Content” field with the following piece of code:
<script>
fbuilderjQuery(document).one('showHideDepEvent', function(){
getField('fieldname5').jQueryRef().find('input').attr('step', 5);
jQuery(document).off('click', '#fbuilder .cff-spinner-down,#fbuilder .cff-spinner-up');
jQuery(document).on('click', '#fbuilder .cff-spinner-down,#fbuilder .cff-spinner-up', function () {
var u = jQuery(this).hasClass('cff-spinner-up'),
e = jQuery(this)[u ? 'prev' : 'next']('input'),
o,s,m,v;
if (e.length) {
o = getField(e.attr('id'), e[0].form);
s = (e.attr('step') || 1) * 1;
m = e.attr(u ? 'max' : 'min');
v = o.val();
if (e.hasClass('percent')) v = PREC(v * 100, 4) * 1;
if (u) v += s;
else v -= s;
if (m) v = u ? MIN(v, m) : MAX(v, m);
o.setVal(v);
e.valid();
}
});
});
</script>
Best regards.
Perfect ! Thank you for your very very quick return. great plug-in