Calculate value from 2 other values

gcopping

Member
I have a form with 2 values entered by the user - say field1 and field2. I want to add another field3 which is calculated as field1 minus field2. What is the best way to do this? I have tried adding Javascript code but cannot get it to work.

I have also seen something in the Help about "Create a XX.js file in components/com_fabrik/js, where XX is your numeric form ID, and put your functions in there, then just call the functions from your element JS actions." However I cannot find any component called "com_fabrik/js" - where do I find this?

Any help is much appreciated.
 
Thanks this looks like a good possibility. I have found the plugin and installed it, but I have absolutely no idea how to code the PHP to do this and I don't find the Help associated with this plugin very helpful in this respect. Is there any other Help anywhere that would point me in the right direction?
 
Back
Top