Support

Account

Home Forums ACF PRO Calculations Reply To: Calculations

  • You need to add your own custom JavaScript to the ACF admin create the code that watches for changes in the first 2 fields, does the calculation and then updates the 3rd field.

    How this code is built depends on what version of ACF you are using. However, the JavaScript in ACF4 and ACF5 are not compatible and ACF5 will be released to the WP plugin repo before the end of this year. If you build it using ACF4 then you’ll need to rebuild it for ACF5. I’d suggest buying 5 http://www.advancedcustomfields.com/pro or waiting until the free version of ACF5 is released to WP.

    For ACF 5 I have created several examples of getting and setting values in ACF using JavaScript. Simple number and text type fields are far easier than many of the examples I’ve created https://github.com/Hube2/contact-form-7-dynamic-select-extension, but the principle is the same.