Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculation based on radio button on form

Status
Not open for further replies.

VictoriaYudin

IS-IT--Management
Oct 23, 2003
491
US
I am using Adobe LiveCycle Designer in Acrobat Pro 9.0. I have a form with a choice for 8 radio buttons - each is a user count. I would like to create a numeric field that shows the a price based on the user count radio button selected. So, something like:
if RadioButton = 1 then $100
else if RadioButton = 2 then $200
else if RadioButton = 3 then $400
else if RadioButton = 4 then $600
...

I cannot find the right syntax for this anywhere, is this possible to do? I am using FormCalc as the language.

Thanks!

Victoria Yudin
Dynamics GP MVP 2005 - 2009
Flexible Solutions - home of GP Reports
blog:
 


Hi,

Then WHAT is $100? You have to make an assignment.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Hi Skip,

The $100 would be a separate numeric field. So I want to have the following happen: I have a section with 8 radio buttons, the user chooses one of the 8 radio buttons, then a numeric field automatically populates with a price based on the radio button chosen. That's where the $100 would go.

I am not quite sure what you mean by assignment...?


Victoria Yudin
Dynamics GP MVP 2005 - 2009
Flexible Solutions - home of GP Reports
blog:
 



Where does your code assign those values to THAT SPECIFIC FIELD?

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top