emcguire
Member
I thought I had this working, but it's not working now for some reason. I have a calc element that should be looking at the form id and simply adding 100 to it. so if the ID of the form is 27 - the calc should return 127.
my calc is :
I also tried it with no "raw" and also tried it with {rowid} , also tried it with creating a $myCalc variable just like the doc example
no matter what I do - it returns "100" as the value. It's like it can't see the form ID? I've read the docs on this, I'm pretty sure my syntax in correct.
settings are
Only Calc On Save = Yes
Ajax Calc = no
Calc on Load = No
If I "edit" the form after I submit it, the calc then calculates and puts in the right number, Can it not work with the form ID on submission?
my calc is :
PHP:
return (int) '{nab_trade_forms___id_raw}' + 100;
I also tried it with no "raw" and also tried it with {rowid} , also tried it with creating a $myCalc variable just like the doc example
no matter what I do - it returns "100" as the value. It's like it can't see the form ID? I've read the docs on this, I'm pretty sure my syntax in correct.
settings are
Only Calc On Save = Yes
Ajax Calc = no
Calc on Load = No
If I "edit" the form after I submit it, the calc then calculates and puts in the right number, Can it not work with the form ID on submission?