Skip navigation
Anabranch
Currently Being Moderated

Radio button response to value

Jul 12, 2012 1:15 PM

Hi,

I am making a form for conference registration and would like to set it up so that values are filled in automatically based on radio button answers.  For example, there are 4 different registration levels and values.  I have set up radio buttons for these.  At the bottom of the form is an area that will tabulate all of the costs.  So, I would like to be able to fill the appropriate value based on the radio button response.  If they choose full it would put 300 into the spot for registration cost. 

 

Similarly for accommodation there are2 different types and 5-nights to choose from.  So, if the users choose option 1 for 5 nights I would like the total value to go into the spot for accommodation.

 

I imagine that I need to set up some if/then sort of statements with Javascript but have no idea where to begin.  Any advice, help or suggestions of resources to look at would be greatly appreciated.

 

Thanks,

Charlie

 
Replies
  • Currently Being Moderated
    Jul 12, 2012 1:42 PM   in reply to Anabranch

    Radio buttons and check boxes have a value of "Off" when not selected and for each named group of check box or radio buttons have the value of the checked check box's or radio button's export or option value..

     

    With one of the automated calculation order you only need select the field for the calculation. For the custom calculation script option you need to use an if statement to exclude the "Off" value from the calculation.

     

    How to do (not so simple) form calculations by Thom Parker

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points