I have found a possible bug when updating Multiple Posts with Post Meta Update Action.
In short, when working with multiple posts, the interaction only affects the last post declared.
My form has two number fields.
When it is submitted it should substract the input number for the related custom field from a CPT. But then both values are substracted from the last Post declared on the interface.
Working on Wordpress 7.1
Bricksforge 3.1.8.9
Bricks 2.3.12
thanks for the report - I checked the code and can confirm this is a real bug, not something in your setup.
What happens: when the Update Post Meta action contains rows for more than one post, the form only remembers one single post reference on submit and applies it to every row. So all updates (in your case both subtractions) end up on one and the same post, while the other post is never touched.
I’ll fix this in one of the next updates.
Until then you can work around it with this small snippet on the page that contains the form (for example via Bricks page settings > Custom Code > Body (footer) scripts, wrapped in script tags):
document.addEventListener('DOMContentLoaded', function () {
document.querySelectorAll('.brxe-brf-pro-forms[data-brf-dynamic-post-id]').forEach(function (form) {
form.removeAttribute('data-brf-dynamic-post-id');
});
});
This removes the stored single post reference, so each row resolves its own Post ID again. Please add it only on the page with this form and remove it once the fix is released.