Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Calculating Multiple Selected Radio Buttons

New Here ,
May 19, 2021 May 19, 2021

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. 

 

TOPICS
JavaScript , PDF forms
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
May 19, 2021 May 19, 2021
LATEST

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:

tempsnip.pngexpand image

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 19, 2021 May 19, 2021

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 19, 2021 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. 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 19, 2021 May 19, 2021
LATEST

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:

tempsnip.pngexpand image

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines