Skip to main content
Participant
May 19, 2021
Answered

Calculating Multiple Selected Radio Buttons

  • May 19, 2021
  • 1 reply
  • 1205 views

I am in the process of creating a packaging menu card where the user selects multiple radio buttons with different values and the total is calculated at the end. There will be varrying totals based on the users selections, so I am thinking that there will be quite a few if else statements, but I am struggling to figure out where to start. Below is the document without any Javascript, since my Java skills are quite rusty. 

 

This topic has been closed for replies.
Correct answer Nesa Nurani

You don't need code for this. Once you set radio button choices to be prices you want, go to total field properties and under 'calculate' tab select 'Value is the' and then pick your radio fields, see image bellow:

1 reply

Nesa Nurani
Community Expert
Community Expert
May 19, 2021

If you set radio buttons choices to be prices, you can use "value is the,,," and just pick radio button groups.

Participant
May 19, 2021

Thank you for the response I think I am still unclear of how you would use "value is the,,,". Could you maybe provide a small code example snippet based on my document. 

 

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
May 19, 2021

You don't need code for this. Once you set radio button choices to be prices you want, go to total field properties and under 'calculate' tab select 'Value is the' and then pick your radio fields, see image bellow: