I have tried this code
if ($values["Vatable"])
$values["VAT"] = $values["Amount/47*7"];
return true;
I am trying to display the Vatable amount only if the Vatable checkbox is ticked, I can not get it to do the maths, I think my problem is around this part "$values["Amount/47*7"];"
The Field Amount is what gets entered as a total on the Add page, if the checkbox is ticked then I need the results to go into the VAT box?
Any ideas please??
Cheers
Paul