Hi @applecarrot
I hope you’re well today!
This is because port of the calculation is multiplication of hidden fields. It’s a “glitch” in logic in our code (it always returns value of 1 for “hidden multiplication”) and is already known to our developers. They are working on a fix but I don’t have ETA yet. Even though the fix “seems simple” it really is not that easy as we need to take into account how thousands of forms already used on various sites are working (so we need to make sure that fix will not break those forms at the same time).
As for now, it would most likely be possible to get it fix with a bit of custom code but I need to consult it with our developers.
I’ve already asked them to check it and we (I or one of my colleagues) will update you here again soon, hopefully with a solution for the issue.
Kind regards,
Adam
Hi @applecarrot
I just got response from our developers and while we don’t have any “patch” code for the issue, there’s a workaround that should work fine for now.
The idea is to use additional calculation field and visibility condition:
1. keep the current “calculation-1” field as is but set visibility condition for it to show it only if “select-1” is “1”
2. add second calculation field “calculation-2” and use only this formula in it
{select-1}*{select-2}
then set its visibility condition to show it only if “select-1” is “0”.
In case you wanted to add Stripe payment to the form in future and use calculation result as payment amount source, you can simply add two payment plans to Stripe field and also set conditions for them (so the right one, fetching data from correct calculation, will be used).
Best regards,
Adam
Hello Adam @wpmudev-support8,
thank you so much! Now I have five calculation fields in the production form, but it is working!
It would be great to know when it will be fixed in Forminator. Do you have a link to a ticket or something so I can check the status?
Best regards,
Marie-Christine
Hi @applecarrot
I’m glad to know it’s working now!
It would be great to know when it will be fixed in Forminator. Do you have a link to a ticket or something so I can check the status?
We don’t have this kind of tickets publicly available, I’m afraid, but there’s a public changelog for the plugin available here
https://ww.wp.xz.cn/plugins/forminator/#developers
It’s updated upon every update release and bug fixes/improvements/new features are always listed there so you may want to keep an eye on that.
Best regards,
Adam