Understood.
I’ve removed the HTML field, I’ve left only the calculated field (fieldname25 https://ibb.co/DfdQnQF), replaced the fieldname23 with fieldname25 in the equation
(function(){
var v = fieldname2*((fieldname16 == 'Euro') ? fieldname25 : 1);
if(v <= 100) return 0;
if(v <= 7000) return PREC(150*1.19, 0);
if(v <= 15000) return PREC((v*.022)*1.19, 0);
if(v <= 30000) return PREC(((v-15001)*.016+330)*1.19, 0);
if(v <= 60000) return PREC(((v-30001)*.013+580)*1.19, 0);
if(v <= 300000) return PREC(((v-60001)*.009+970)*1.19, 0);
if(v <= 600000) return PREC(((v-300001)*.0065+3130)*1.19, 0);
return PREC(((v-600001)*.0044+5080)*1.19, 0);
})()
and added the shortcode [CP_CALCULATED_FIELDS id="12" post_var="post-8331"]
into a page but it doesn’t calculate.
I’m adding the shortcode in another page, not 8331.
What am I missing?
Thank you