Using radio button other field in calculation formulas

I’m trying to set up a product field with a calculation to display a donation amount based on an option selected via radio buttons. The field is working for most options, but I haven’t been able to figure out how to get the value of the radio buttons’ “other” choice. The main formula used is simple:

{Donation Amount:12:value}

This formula works for any radio buttons with predefined values, but seems to return 0 if the “other” option is selected and filled out.

I’ve looked around to see if there’s any syntax that would give me access to the “other” value but I haven’t been able to dig anything up. It seems like there are some JavaScript or PHP approaches to brute force this calculation but I’d like to use the built in calculation functionality if possible.

I found a workaround by creating a manual “Other” option with a value of 0 and displaying another field when that value is selected. The new formula is:

{Donation Amount:12:value} + {Other Amount:13:value}

This works, but I am a little frustrated that getting the other value of a radio button set is so obtuse.

Hi Christopher. That is a good workaround. If you would like to suggest that “other” option be available for use in calculations, I recommend adding that to our product roadmap. Click the blue :heavy_plus_sign: in the lower left on this page to add a note for our product team:

Thank you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.