Does this plugin actually work?
-
Hi,
I have now spent about 3 hours trying to get 1+2 to be 3 and failed. There are so many ways you can write a formula and when the documentation has gaps and you cannot see the result other than in the editor, it takes time…
My setup:
PHP Version: 7.3.16
PHP Max Input Vars: 3000
PHP Max Post Size: 128M
WP Version: 5.4.1
WP Multisite: No
Memory limit: 768M
Advanced Custom Fields version 5.8.9 (not the Pro version)
Calculated fields for ACF version 1.2.4Here is what I have:
In a Field Group called GroupA (there is no way you can create Fields outside of a Group) I have created 2 Fields called FieldA and FieldB.FieldA is written as follows:
– Field Label: FieldA
– Field Name: fielda (autogenerated to all small letters)
– Field Type: Number (recommended by the documentation)
– Formula: left blank (this is the new field that this plugin adds to the ACF field editor.)
– Read only: Yes (from one of the 3 screenshots, but I’ve tried no as well)
– Default Value: 1 (this is the 1 in 1+2)
– Evrything else left blank (I’ve tried with Minimum & Maximum Value set to 1 as well without it making any difference)I’ve also tried with the 1 in Formula Field, it does not really say anywhere where you are supposed to put the value you want. If it says something you could interpret that it should actually for into that Formula Field, but I don’t know.
I then duplicated the FiealdA and renamed the Field Label to FieldB, Field Name to fieldb and the Default Value to 2, (this is the 2 in 1+2).
Then I created the Summary field called Sum. Up til now this has been basic ACF since I really have not used the Formula Field yet (I have tried with it used as well as mentioned above).
Sum is written as follows:
– Field Label: Sum
– Field Name: sum (autogenerated to all small letters)
– Field Type: Number (recommended by the documentation BUT in one of the 3 Screenshot it is set to Text, I have tried both.)
– Formula: fielda + fieldb (I have also tried FieldA + FieldB, fielda+fieldb, FieldA+FieldB, (fielda)+(fieldb) and all other combinations with/without spaces around the + since in some of the text and screenshots they are without, and you could interpret that parantheses are useful)
– Read only: Yes (again from one of the 3 screenshots, but I’ve tried no as well)
– Evrything else left blankThen, in my WP Editor and Elementor, I insert 3 ACF fields, the 3 mentioned above. I use the Dynamic Field options, where all 3 show up.
FieldA correctly shows as 1
FieldB correctly shows as 2Sum shows nothing, no error, no zero, no null, just nothing. Not in the Editor, nor in the Page Preview. The FieldA/B numbers 1 and 2 show up immediately in the Editor. I do not know if the Sum calculation is supposed to show up there as well, it does not say anywhere. It is a bit of a pain that you cannot verify your formula in the ACF interface when you enter it, to say the least.
Please advise what/where I am going wrong and/or what I have not understood. I really do want this to work, as I am sure you understand by the time and effort I have put into this.
Best regards,
//Matthias
- The topic ‘Does this plugin actually work?’ is closed to new replies.