Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Script to sum items

Avatar

Level 3

What is a good script to add multiple button items (each button has a value). For a small sample of buttons, I tried and successfully used the FormCalc run at client Sum(), where I add each individual button to the addition (works fine). But I thought there was a better script maybe using JavaScript to do the same, when there are many buttons to add up.

Thanks for the help and advice.

Shai

3 Replies

Avatar

Level 10

Shai,

Can you post a sample form? I would like to see how you have the buttons configured. I assume you are talking about radio buttons.

Steve

Avatar

Level 3

Hi Steve,

Yes, will post the form. I tried to post it to the forum, but there was no attach button that I could find. Note that there a lots of radio buttons, each having a specific value and I need to sum them all in the Total Score box.

Thanks for your help in advance.

 

Good times...... Good times

Shai

Avatar

Level 10

Sorry Shia, I forgot about the current temporary restriction on attachments. The site was attacked recently via an attachment.

Please forward the attachment to stwalker.adobe@gmail.com.