• ResolvedPlugin Contributor nick6352683

    (@nick6352683)


    So the latest update fixes the saving error when this is used in an ACF Block.

    HOWEVER, even though we can save the post which contains a calculated block, no calculations are performed… this plugin currently ONLY works with Custom Fields and not ACF Blocks…

    Thanks,
    Nick.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wundermatics

    (@wundermatics)

    Hi Nick,

    Thanks for letting us know about this. ACF blocks has not been part of our test suite so it’s perhaps not so surprising. We’ll look into this asap.

    In the mean time, any details about how you use the plugin would be appreciated. WordPress version, ACF version. Are you using calculated fields in a page, post or other custom post type? Any input to help up trouble shoot this is helpful.

    Plugin Contributor nick6352683

    (@nick6352683)

    Thanks for the fast response. I also responded your direct message on Slack btw…

    I tested it:

    1. Custom Fields in a post – with the latest update, EVERYTHING works as expected. I’m almost 100% certain that with this setup, it is going to work fine with a page or a CPT.

    2. Created an ACF block and created an Invoice ACF block just for a simple testing purposes. The calculated fields do not work in this scenario.

    3. Finally, I used “Advanced Forms” – (https://wordpress.org/plugins/advanced-forms/) plugin, and created a sample “Ordering Form” where people can select and order Items. I set it up that after the form submission it would display all the fields. The Calculated fields have no values, they are simply empty. HOWEVER, if you go in the backsite, and check the form entries that the form saves the submissions, the calculated fields are populated correctly, meaning the calculations were performed and correctly saved in the actual ACF calculated fields.

    These are the test scenarios that I’ve tested your plugin.

    One last point. This plugin can do a running total of any subfield of a Repeater field. There is no way to find the average of a subfield. The “Advanced Forms” plugin has a setting to hide any field from the meta box in the backsite, so by creating a number subfield, with a default value of 1, and hiding it from getting displayed, I can use your plugin and find the Sum of that subfield, and then use that count total to find the Average of any subfield that I can do a running total.

    Adding an Avg function along with the Sum for subfields in a Repeater field, would be nice. and since we are at it, having a min and max calculations for subfields would be extra nice…

    Thanks,
    Nick.

    P.S. Sorry for pushing you guys so hard, I’m just trying to make this plugin even better with some ideas…

    • This reply was modified 4 years, 4 months ago by nick6352683.
    Plugin Author wundermatics

    (@wundermatics)

    Hi,

    Basic support for ACF blocks is not fixed in version 1.1.3. It works to the extent that fields used in a block that are modified via the right hand side metaboxes will work. In some (many?, all?) scenarios where a block uses ACF fields on the front end, it will probably not work as expected (yet).

    I’m closing this issue since front end support is still not in the scope of this plugin. But we are looking at a solution for that as well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘It really does not work with ACF Blocks’ is closed to new replies.