It works today.
In the sense that the fields to create a formula appear in the simple Text Field (general tab).
the simple text field has a line in the general tab with FORMULA.
There you must write a calculation formula.
But I haven’t tested how it comes out because I find it very complex.
Here is the guide to creating the formula
https://www.wundermatics.com/docs/calculated-fields-for-acf-getting-started/
]]>Do we know if there’s an update coming at all?
Even if it’s just to bump the publish date up, so WP doesn’t flag it as not been tested with x amount of releases and last updated over 2 years ago?
]]>Hello, I’m trying to add up the values of two fields, but it is not working. The formula is: basisprijs_LS + meerprijs_HS
I created a video of the issue here
]]>Im wondering if anyone sorted out a solution for when this plugin fails to save calculated fields to the database. I managed to get the latest version to work by minifying the JS and uploading it to the folder its missing. Calculations in the admin work fine now, but the results simply will not save. I can find any error or problem in the logs or in the console. Ive also tried the last 3 versions of the plugin without success.
]]>Do you plan on updating the plugin to ensure that it is compatible with a higher version of PHP and WordPress?
Bill van Wyk
]]>Hi
Great plugin!
Looking for a way to round up field to next thousand.
12,235 >> 13,000
Good news, this is another update to this issue: https://www.ads-software.com/support/topic/upcoming-acf-pro-repeater-field-and-calculated-fields-for-acf/
I’m now testing WP 6.2 beta 3 and the latest version of ACF Pro (v. 6.07), and it seems that between the new upcoming version of WP or with the newest ACF Pro version, the issue no longer exists.
Meaning that we can now have pagination in Repeater fields, and we can have calculations tabulated correctly. I tested with a simple Sum function, i will conduct more detailed and complex situations.
As usual, I will report if I find any lingering issues…
Update: Unfortunately, the issues are still there with complex situations, when for example you have an invoice (repeater field), and have subfields Qty, Price and Line Total, and then in a Separate field calculating the grand total.
Back to square 1 with all cases, we need to find out why it’s working in some cases, and not in others… Until we find a solution, DO NOT USE pagination in Repeater fields, if you need to calculate things…
Nick.
]]>Hello
I have a problem and I can’t solve it
I want to compare two fields to show the larger number
Use the Max function this way
max(weight:volumetric_weight)
Photo in the attachments
https://drive.google.com/file/d/1Uk9zOwLIyNZotstvumL4ow7LRuCG5jcr/view?usp=share_link
Thank you so much
]]>I’m using your plugin and it works great!
The only problem is that the decimals of the percentage calculation is way to long. I’ve read the page about the number format but i can’t figure out to fix it.
Can you help me with this? What do i need to fill in the number format to get only two decimals?
See example:
]]>Hi, I have a flexible field and row with subfields inside. How can I use your plugin?
]]>Hi. I am trying to use your plugin, but hot the problem as it was mentioned this topic .
What I am trying to do if user selects multiple tick boxes he gets the fields with each price which he is not able to change and I need it to be calculated using your plugin, but as it was mentioned in other topic if user not includes one of the tick box result is 0. Is it any way to count all group sum or something like that. Thanks
]]>This is in a way continuation to: https://www.ads-software.com/support/topic/upcoming-acf-pro-repeater-field-and-calculated-fields-for-acf/
Today ACF Pro 6.0 RC1 was released, and after conducting some initial test, this plugin works with this upcoming ACF Pro version. Once again, if for whatever reason you cannot make this plugin to work, try rolling back to a previous version. For me, I have to use V1.3, and some have reported that they had to roll back to v1.2.4, while some of course they have no problems with the latest version of this plugin.
]]>I have tried, but nothing seems to work when referencing a custom field.
I have two number fields; opening_balance and test and then a third number field, current_balance with the formula of opening_balance + test but the calculation will not work, it just shows zero.
What am I doing wrong?
]]>A friendly warning to all:
ACF Pro 6.0 is getting developed and v6.0 beta is ready for testing. One of the new features is the ability for the Repeater fields to have pagination.
Read all about it here: https://www.advancedcustomfields.com/blog/acf-pro-6-0-beta-1/
After testing, I concluded that by using the Repeater pagination, some of the calculated fields are not tallied correctly…
Let me specify with this hypothetical example:
Let’s say we have a Repeater field for invoices. The subfields include quantity, amount, and line total fields. Also the repeater field is set to have pagination.
We also have a second field outside of the Repeater field Total which will tally the total for the line total subfield from the Repeater field.
At this point we will get these 3 scenarios:
1. Inside the Repeater field, the line total subfield will always be calculated correctly (qty * amount).
2. The total field which sums up the line totals will be calculated correctly as long as you don’t exceed the pagination value. Therefore by default, the pagination is set at 20 records per page, and as long us your repeater field has 20 or less rows, you will be fine… of course the pagination value of 20 rows can be changed to anything you want.
3. If your Repeater field uses pagination, and you have many rows that the pagination kicks in, the total field which sums up the line totals from the repeater field will not be accurate.
Bottom line: Do not use the new pagination in the upcoming Repeater field if you need to do certain calculations with the data, such as using the Sum, Average, Count, Min, Max functions.
]]>Hi!
I have 20 fields ACF,but conditionally. So if field 1 has content, field 2 is shown. So it is possible not al fields are filled.
The calculation is sum(field_1+field_2+ etc.) for 20 fields. But when someone not uses all fields, the sum = 0. Even when some fields do have value.
Is there a way to tell the calculation to only calculate fields when in order/filled. When conditionally not used, it will not be in the calculation (or as 0).
Hope you understand what I try to explain. Thanks and best regards,
Remco
]]>Only calculates when I update/publish my post, is there a way to do this while I put numbers in? I’m using this to make sure my numbers add to 100 with 3 fields. Right now say I have x=50, y=25, and z=25 but on a different post (that I just duplicate) I need x=50, and y=50. It won’t work as the total field says it’s at 125. Even when I delete the z value it won’t save my post.
]]>Hi,
I’m importing posts at large scale via CSV and populating ACF fields from the CSV file. I want to use calculated fields to perform calculations automatically based on the imported field values.
I’m literally importing thousands of posts so it is impractical for me to manually go into each post individually in order to update the calculated field and get it to display on the front end.
Is there any way to automatically populate the calculated fields without having to go into each post and update it manually?
Thanks in advance!
]]>This probably isn’t an option, but here goes. In an online store, there will be 1 product which is a gift certificate, and it needs sequential numbers attached to it. Example, the first gift certificate purchased will have a number of 1, the next one purchased will have a number of 2, etc. The physical goods sold will not need this field – only the gift certificate.
Thank you.
]]>The version 1.3.2 is creating a 404 error for /wp-content/plugins/calculated-fields-for-acf/admin/assets/calculated-fields-for-acf.min.js. I checked the code and confirmed that the minimized version is missing. The minimized version is only loaded when _not_ SCRIPT_DEBUG. A temporary workaround is to duplicate the non-minimized version under that name.
]]>I am using the plugin on a website and it sometimes does not calculate the values from given (repeater) fields, other cases it works fine. Any ideas? Same field group and all
Happy to hire the dev for bugfixing as well if needed
Chris
]]>Hello. I installed on WordPress 5.9.. It’s freshly installed. With only one required plugin additionally installed. I don’t know where to look in your plugin settings to start working with it.
https://imgbox.com/AGbisckb
After updated to 1.3.2 and it not works anymore. I am using it in a NUMBER field which is in a REPEATER field.
Error message: Invalid argument supplied for foreach() in /wp-content/plugins/calculated-fields-for-acf/src/Fields.php on line 95
The calculation result is ZERO, not valid value.
Besides that the minified JS is missing from the new version:
/wp-content/plugins/calculated-fields-for-acf/admin/assets/calculated-fields-for-acf.min.js?ver=1.3.2
Thank you and hope it will be resolved.
]]>hello i just check your documentation, i just dont understand how we can add thousand separator in currency formating
please help me
It would be great if the plug-in supported string, date and boolean functions, with the ability to convert between different field types (eg. string to number to date, etc).
]]>Hi! I’m having the following problem!
I have a Field Group with 3 fields being the first two numerical fields and the 3 will be where the calculated data will appear, when I type the values to be calculated instead of showing the result of the calculation a code in Json appears instead!
I tried to put the field to only number but then it was empty!
One more important detail, if I do the calculations in fields outside the group it works perfectly! Thank you for your help!
Below is the Json code generated in the field instead of the value:
[{"name":"teste1","subFieldName":"grupos_e_tabelas_teste1","key":"field_617a9b36b35f0","type":"text","value":"12","sortOrder":0,"formula":"","format":"","blankIfZero":"0"},{"name":"teste2","subFieldName":"grupos_e_tabelas_teste2","key":"field_617a9b3fb35f1","type":"text","value":"56","sortOrder":1,"formula":"","format":"","blankIfZero":"0"},{"name":"teste3","subFieldName":"grupos_e_tabelas_teste3","key":"field_617a9b4bb35f2","type":"text","value":672,"sortOrder":2,"formula":"teste1 * teste2","format":"","blankIfZero":"0"}]
Below is a small video I made to demonstrate how this behavior occurs in the field:
Image Links of the sequence that led to the error:
https://ibb.co/pLnq2b9
https://ibb.co/sCQfwRh
https://ibb.co/ZdxPxYg
https://ibb.co/qWWdHmh
Below is the content of the json file for import:
[
{
“key”: “group_6177850219592”,
“title”: “Campos Pacotes de Eventos”,
“fields”: [
{
“key”: “field_617a9b20b35ef”,
“label”: “GRUPOS E TABELAS”,
“name”: “grupos_e_tabelas”,
“type”: “group”,
“instructions”: “”,
“required”: 0,
“conditional_logic”: 0,
“wrapper”: {
“width”: “”,
“class”: “”,
“id”: “”
},
“formula”: “”,
“calculated_format”: “”,
“blank_if_zero”: 0,
“readonly”: 0,
“layout”: “table”,
“acfe_seamless_style”: 0,
“acfe_group_modal”: 0,
“acfe_field_group_condition”: 0,
“sub_fields”: [
{
“key”: “field_617a9b36b35f0”,
“label”: “teste 1”,
“name”: “teste1”,
“type”: “text”,
“instructions”: “”,
“required”: 0,
“conditional_logic”: 0,
“wrapper”: {
“width”: “”,
“class”: “”,
“id”: “”
},
“formula”: “”,
“calculated_format”: “”,
“blank_if_zero”: 0,
“readonly”: 0,
“default_value”: “”,
“placeholder”: “”,
“prepend”: “”,
“append”: “”,
“maxlength”: “”,
“acfe_field_group_condition”: 0
},
{
“key”: “field_617a9b3fb35f1”,
“label”: “teste 2”,
“name”: “teste2”,
“type”: “text”,
“instructions”: “”,
“required”: 0,
“conditional_logic”: 0,
“wrapper”: {
“width”: “”,
“class”: “”,
“id”: “”
},
“formula”: “”,
“calculated_format”: “”,
“blank_if_zero”: 0,
“readonly”: 0,
“default_value”: “”,
“placeholder”: “”,
“prepend”: “”,
“append”: “”,
“maxlength”: “”,
“acfe_field_group_condition”: 0
},
{
“key”: “field_617a9b4bb35f2”,
“label”: “teste 3”,
“name”: “teste3”,
“type”: “text”,
“instructions”: “”,
“required”: 0,
“conditional_logic”: 0,
“wrapper”: {
“width”: “”,
“class”: “”,
“id”: “”
},
“formula”: “teste1 * teste2”,
“calculated_format”: “%0.2F”,
“blank_if_zero”: 0,
“default_value”: “”,
“placeholder”: “”,
“prepend”: “R$”,
“append”: “”,
“maxlength”: “”,
“acfe_field_group_condition”: 0
}
]
}
],
“location”: [
[
{
“param”: “post_type”,
“operator”: “==”,
“value”: “pacotes-de-eventos”
}
]
],
“menu_order”: 0,
“position”: “normal”,
“style”: “default”,
“label_placement”: “top”,
“instruction_placement”: “label”,
“hide_on_screen”: [
“page_attributes”,
“author”,
“categories”,
“comments”,
“discussion”,
“the_content”,
“send-trackbacks”,
“format”,
“permalink”,
“excerpt”,
“revisions”,
“slug”,
“tags”
],
“active”: true,
“description”: “”,
“acfe_autosync”: “”,
“acfe_form”: 0,
“acfe_display_title”: “”,
“acfe_meta”: “”,
“acfe_note”: “”
}
]
Is there a limit on the number of fields that can be calculated? I have a long list of fields (sub-totals, working fine) to total up (adding up those subtotals isn’t working).
Here is the formula (not working):
basic_sub-total+elk_quartered_sub-total+elk_sub-total+large_exotic_sub-total+caping_sub-total+gutting_sub-total+trimmings_sub-total+bacon_backstrap_sub+burger_with_brisket_sub+burger_with_bacon_sub+sliced_fresh_jerky_sub+marinated_fajita_sub+pan_sausage_sub-total+fresh_link_sausage_sub-total+jal_chz_link_saus_sub-total+fresh_link_pepper_jack_sub-total+fresh_link_sweet_chipotle_sub-total+fresh_link_sweet_chipotle_wch_sub-total+smoke_link_sub-total+jal_chz_smoke_link_sub-total+smoke_link_pepper_jack_sub-total+smoke_link_sweet_chipotle_sub-total+smoke_link_sweet_chipotle_wchz_sub-total+plain_summer_sausage_sub_total+jal_chz_summer_sausage_sub_total+snack_stix_sub-total+little_smokies_sub-total+jerky_sub-total
Hi, I do love your plugin, it help me to develop my assessment.
But I found two problems now, please help me to solve it.
1. The feature “calculations are automatic done” only happened on select field, if I use checkbox field, it won’t execute.
2. It is not suitable with a plugin ACF Frontend for elementor.
I have a successful experience on this site:
https://assessment.poisedto.com
But it has several errors on this site:
https://lohas-edu.org/hero-role
So I need your help, thanks
]]>In version 1.3 I get an uncaught reference error:
calculated-fields-for-acf.min.js?ver=1.3:1 Uncaught ReferenceError: acf is not defined
at calculated-fields-for-acf.min.js?ver=1.3:1
at calculated-fields-for-acf.min.js?ver=1.3:1
]]>
I had a repeater custom field which has subfields like “1_poz_ad”, “1_poz_en”, “1_poz_boy” when I tried to make a calculated field like “1_poz_ad * 1_poz_en” I saw they all result with “0”.
Then I tried to figure out what’s going on for a day, then I saw that when I change the field names to full-alphabetic names it started working again.
I changed “1_poz_en” to “first_poz_en” then it started working again.
I don’t know if the author still around for this plugin but wanted to share it with community.
]]>Hi there,
I’m using Woocommerce with Adavnced Custom Fields. I’d like to be able to carry out calculations that involve the Woocommerce product price. Is this possible?
As an example, if I sold a box of 10 coloring pencils, as well as displaying the price in the normal way, I’d also like to be able to show the “price per pencil” as a custom field. This would entail dividing the Woocommerce price by a custom field and then outputting as a second custom field on the product page?
]]>