Hello @compasstourist
Yes, that’s possible, but you should force the evaluation of the second equation. For example, assuming you have two calculated fields, fieldname123 and fieldname456. The equation of the fieldname123 field generates a global javascript variable (It is a hypothetical example):
(function(){
my_global_variable = fieldname1*fieldname2;
return my_global_variable+fieldname3;
})()
And you want to use the my_global_variable variable in the equation of the fieldname345. So, you must trigger the second equation from the first one:
(function(){
my_global_variable = fieldname1*fieldname2;
EVALEQUATION(456);
return my_global_variable+fieldname3;
})()
The EVALEQUATION operation receives as a parameter the number component in the field’s name whose equation you want to evaluate.
Best regards.
Thanks so much and appreciate the speedy response.
Yes that works great! (although for anyone else finding this answer I had to tweak it slightly to EVALEQUATION(document.getElementsByTagName("form")[0], 456))
Hello @compasstourist
You should pass the form object only if there are multiple forms generated with our plugin on the page.
Best regards.