Hi @jwaldeck1
I think there’s a bit of confusion about the rules here so let me explain that a bit more:
Current Visibility conditions and what they are doing
I checked the form that you shared in initial post and I’m not quite sure why the “Total Amount” even has visibility conditions set at all.
You are using that field as a source of payment amount and that part is fine. But if you look closer at the “Calculations” tab at the bottom it says “When this field is hidden, should its value be be null (zero) or should the filed be ignored in calculation”.
When you hide the field using conditional logic any other non-calculation field behaves as if it didn’t even exist on form. In case of calculation fields you can decide but still – it’s a choice of “make the filed like it never existed” (“Ignore” settings) or make it have value of “0” (regardless of whatever calculation would normally be.
In your case it’s set to “Ignore” which means that when it’s conditionally hidden (because checkbox-2 “Help cover PayPal fees”) is not set to “add”, it’s like this field wouldn’t exit. Therefore PayPal has no value set at all and it cannot process payment.
If you switch this field to “zero” – PayPal value will be set even if it is hidden but PayPal will still “complain” because “0” is not allowed payment value.
This is correct and expected behavior.
—–
How to solve that?
Since you want your user to decide if they want to add PayPal fees or not, you already have that configured via the “checkbox-2” and “PayPal fees” field. However, I would also recommend switching “Ignore this field” to “Null (zero)” on “Calculations” tab of “PayPal fees” field.
Now if you want to show the “Total Amount” or hide it depending on whether “PayPal fees” checkbox is checked – that’s fine, keep that field as is with its current visibility conditions.
But then do this:
– duplicate that “Total Amount” field (click on a “gear” icon next to it and then on “Duplicate” option)
– in that duplicated field remove visibility conditions first
– then in that same duplicated field go to “Settings” tab and check the “Hidden” checkbox there (this is different than visibility rules, it’s simply hiding field from the view but still keeping it in use)
– and finally set that new duplicated field as a amount source in PayPal field.
—
Result
Both fields – original “Total Amount” and duplicated one – will independently calculate the very same value. But now one is used to show or not that amount to the user while the second one will be invisible but will carry calculated value to the PayPal field.
Best regards,
Adam