Only calculate specific fields when hitting a button

[ad_1]

Dear CFF-Team,

I’m sure you can help because I’m a helpless newbie … 🙂

I have several calculated fields with simple equations (e.g. multiplication, generating random numbers, etc.) put into the the “Set equation” Box. I’m using a button (calculation option) and everything works perfectly fine. Is it possible to only calculate specific fields when I hit my button and keep the other fields just like they are?

I tried out the options provided in this forum, for example:

jQuery(‘[id=”fieldname1_”]’).val(‘0’)
jQuery(‘[id=”fieldname_”] :input’).val(”)

and also the “ignorefield” via CSS but it either sets a value, clears it (which is already good because I also need that) or lets the field dissapear. I also tried something like caluculate, execute, etc. but ultemately I’m clueless (blush).

Important note: I need to display my fields all the time, I do not want to have the option to dynamically execute the equations (since I only need specific fields) and finally it would be great to keep my equations in the box instead of putting it into the jQuery code (I saw something with function () ..)

Kind regards,
Marcella

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer