Skip navigation
Currently Being Moderated

caluclation based on a radio button selection

Jul 3, 2012 2:32 AM

Tags: #pdf_forms #acrobat_9_forms #calculations

I am trying to create a simple calcuation which is dependant on the response to a radio button.

So I have a radio button named Angus with a yes no answer option, I want to calculate a 10% discount if the radio button is yes and give the full price if the radio button is no


So far I have


if (angus  == yes)  {

finalbasic= (basic-basic/10, basic) ;

if (angus == no) 

finalbasic= (basic);



but this does not do anything...any advice would be great...I have no knowledge of java so please make any answers simple!

  • Currently Being Moderated
    Jul 3, 2012 6:50 AM   in reply to KKieze

    Are you getting any errors?


    If so, what are they?


    Is there a default checked box for this radio button?


    I would assign values to the export value of the radio button and make the 'No" button checked by default. You then set the export value of the "Off" radio button to 1 and the export value for the "Yes" button to 0.10. You can then do not need to use the custom calculation script, you could use the simplified field notation calculation option.


    For the finalbasic value:


    basic - (basic * angus)

    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