thomasl82
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Changes in field input changes color of buttonGreat, thank you!
Your support makes me feels relaxed once the form is a success to upgrade. Are (old) forms after upgrade ported automatical to the pro version or how to keep the existing forms?
Forum: Plugins
In reply to: [Calculated Fields Form] Changes in field input changes color of buttonSorry my mistake, I don’t want to reset the form. As you pointed corrwct out there is no need. Only change the background of the button color when changing fieldname11. How I have to rewrite the code to achieve that. Just delete the phrase: “f[0].form.reset();”? out of the code above you’ve send?
Forum: Plugins
In reply to: [Calculated Fields Form] Changes in field input changes color of buttonThank you, but I’m still trying to figure out how I can connect this piece of code with the the situation when the input fields are changed. Instead of having the form cleared I try to achieve that the calculation button turns orange in case the input fields (as an example below the fieldname11) are changed. I tried with the code below (combining with the code to change the color of the calculation button you’be send) but it’s not working. Can you help please
<script> jQuery(document).on('change', '[id*="fieldname11_"]', function(){ var f = jQuery(this), v = f.val(); this.form.reset(); f.val(v).change(); jQuery('.cff-button-field input').css('background', '#fdbb26'); }); </script>Thanks in advance!
Great, this works beautiful. Thank you!
Enjoy weekend