form works great in preview, but on published all calc fields are blank, when i submit and get email, the values are there and correct.
how do i get it to work on the site so users can see before submitting?
]]>I would like to have two fields that calculate each other dynamically.
Example : fieldname1 = fieldname2 * 2 AND fieldname2 = fieldname1 / 2
I want that as soon as I type a value in a field, the calculation is done in the other field.
Thank you in advance for your help
]]>I am new to Calculated Field Forms. I would like to remove the background and border on the calculated fields and move the field segments closer together. I would also like to make the numbers larger and a different color. My plan is to put the form in the hero image container.
I have read through support articles and tried a few different things, but I am stuck. Does the grey box within the calculated field have a different name or do I need to give it one? Please help!
This is a mockup of what I want it to look like on the site:
https://southfacesolar.com/wp-content/uploads/2022/01/homepage-mockup-design-calculated.png
This is what I have so far:
https://southfacesolar.com/wp-content/uploads/2022/01/Screenshot-2022-01-06-131657.png
Then I tried to figure out what’s going on for a day, then I saw that when I change the field names to full-alphabetic names it started working again.
I changed “1_poz_en” to “first_poz_en” then it started working again.
I don’t know if the author still around for this plugin but wanted to share it with community.
]]>Is it possible to create an instant quote for my website using this plugin?
Length + Width = $
I would like buyers to put in their custom Length + Width Measurements. And have Preset values to give custom amount $ value.
Something like this for example:
if fieldname1 (Length) + fieldname2 (width) = (Between 4000 to 6000) then the answer is $850; })();
if fieldname1 (Length) + fieldname2 (width) = (Between 2000 to 3999) then the answer is $650; })();
Hope you can answer my question.
Kind Regards
]]>Fieldname11 are radio buttons indicating the roof type. This is conditional (i.e. “If selected show”), meaning that a further sub-category for the roof type pops up depending on the selected roof type. For instance, if “tegltag” is selected, fieldname3 is pops up.
However, if “eternittag” > “b?lgeeternit” (fieldname12=0) > “Uden montering” (fieldname10=0) > “Tagets samlede antal kvadratmeter”=1 is selected, it shows a value of 350. One would, however, expect a value of 10000 from the calculated fields:
if(fieldname12==0 && fieldname10==0)
return 10000*fieldname2+fieldname5*4000+fieldname6+fieldname7+fieldname9*300;
I suspect it gets the 350 from the first line of code from the calculated fields:
if(fieldname3==0 && fieldname10==0)
return 350*fieldname2+fieldname5*4000+fieldname6+fieldname7+fieldname9*300;
The full code from the calculated fields is shown below. Does anyone know what the problem is?
(function(){
if(fieldname3==0 && fieldname10==0)
return 350*fieldname2+fieldname5*4000+fieldname6+fieldname7+fieldname9*300;
if(fieldname3==1 && fieldname10==0)
return 500*fieldname2+fieldname5*4000+fieldname6+fieldname7+fieldname9*300;
if(fieldname3==2 && fieldname10==0)
return 300*fieldname2+fieldname5*4000+fieldname6+fieldname7+fieldname9*300;
if(fieldname3==3 && fieldname10==0)
return 500*fieldname2+fieldname5*4000+fieldname6+fieldname7+fieldname9*300;
if(fieldname3==0 && fieldname10==1)
return 700*fieldname2+fieldname5*4000+fieldname6+fieldname7+fieldname9*300;
if(fieldname3==1 && fieldname10==1)
return 1100*fieldname2+fieldname5*4000+fieldname6+fieldname7+fieldname9*300;
if(fieldname3==2 && fieldname10==1)
return 600*fieldname2+fieldname5*4000+fieldname6+fieldname7+fieldname9*300;
if(fieldname3==3 && fieldname10==1)
return 1000*fieldname2+fieldname5*4000+fieldname6+fieldname7+fieldname9*300;
if(fieldname12==0 && fieldname10==0)
return 10000*fieldname2+fieldname5*4000+fieldname6+fieldname7+fieldname9*300;
if(fieldname12==1 && fieldname10==0)
return 650*fieldname2+fieldname5*4000+fieldname6+fieldname7+fieldname9*300;
if(fieldname12==2 && fieldname10==0)
return 375*fieldname2+fieldname5*4000+fieldname6+fieldname7+fieldname9*300;
if(fieldname12==0 && fieldname10==1)
return 640*fieldname2+fieldname5*4000+fieldname6+fieldname7+fieldname9*300;
if(fieldname12==1 && fieldname10==1)
return 1230*fieldname2+fieldname5*4000+fieldname6+fieldname7+fieldname9*300;
if(fieldname12==2 && fieldname10==1)
return 750*fieldname2+fieldname5*4000+fieldname6+fieldname7+fieldname9*300;
})();
]]>– If value is less than 1001
– If value is greater than 1000 & If value is less than 2001
– If value is greater than 2000
In order to create this, would I have to do a different Calculated Field for each equation (which would end up being 12 Calculated Fields)?
]]>