Totaling values from 2 sets of radio buttons
Last Post 09-08-2008 09:40 AM by Chad Nash. 1 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
Brian DuffyUser is Offline
skipping stones
skipping stones
Posts:11
Avatar

--
09-03-2008 06:09 AM

    I am trying to total selections made from radio button sets.  This example comes the closest to explaining what I need: http://www.datasprings.com/Products....aspx#3387

    I have placed the following code in the client side event for the radio button fields and the intended total field:

    $(TotalCharges)=parseInt($(PIAMembFullReg))+
    parseInt($(NonMemFullReg))

    TotalCharges is the shortname of the total field.  Nothing calculates. Where am I going wrong?

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    09-08-2008 09:40 AM

    Brian,

    Hi. There is a longer explanation to why this doesn't work (with radio buttons like checkbox lists) but I think I covered that in a support ticket with you. Either way, with the 2.7 release we added a javascript function call that can be used, I think its called funcRadioCalc. This should be used instead of the checkboxlist client side event. We will work on a demonstration that covers adding radio buttons but it should be easy now that the function call is generating the proper value. Just for reference, you can access this Beta Springs page which uses the function call and gets the radio button value. You can then use this add or calculate multiple radio buttons etc...



    Beta Springs - Radio Button Calculation w/ Client Side Events



    -Chad



    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi