[Solved]How to calculate diff date in fabrik

Why the floats? What do you get if you return each placeholder only?

What if the second value is empty or even 0 (zero)? 0 wouldn’t be good because invalid. So, to prevent it, perhaps build an if/else around the math.
 
Dunno. What element types are those? Tried with “_raw” appended? Ajax/observe?

$myCalc = ((int)'{modul_maklumat_kemasukan_projek_baru___pembayaran_pertama}' / '{modul_maklumat_kemasukan_projek_baru___nilai_kontrak_sebenar_rm_}' * 100);
return $myCalc;

element types modul_maklumat_kemasukan_projek_baru___pembayaran_pertama = int
element types modul_maklumat_kemasukan_projek_baru___nilai_kontrak_sebenar_rm_=int

in the field Ajax observe fields = {modul_maklumat_kemasukan_projek_baru___pembayaran_pertama},{modul_maklumat_kemasukan_projek_baru___nilai_kontrak_sebenar_rm_}
 
Last edited:
Like Lousyfool already asked: What do you get if you return each placeholder only?

Or when you add "_raw" in the end of the placeholders?

Underscore (_) in the end of the element name seems odd for me, but this has probably nothing to do with this.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top