Guest jennifer Posted January 29, 2007 Share Posted January 29, 2007 I have never written javascript code before. I have imported a file into Acrobat Professional 8 and made it into a form. Most of my fields are finished and calculate properly, however there is one area that I have to write a custom javascript. Essentially what I want to have happen is when a customer types in a group size, which can be any number between 10 and 50+, the rest of the fields need to automatically calculate to achieve a total price per person for that group #. (I don't want them to be able to enter in their own discount) For example:Base Rate is $30.00 per person (Field #1) group size: 25(Field #2) discount based on group size: $1.00 Off up to $8.00 Off(Field #3) new rate: base rate minus discount(Field #4) Total group rate per personFields 1 & 2 are what I am having trouble with. Do I use an If Statement or If…else Statement or what?If anyone can help me I would appreciate it so much! Link to comment Share on other sites More sharing options...
jesh Posted January 29, 2007 Share Posted January 29, 2007 You might start by posting what code you already have. Also, try describing how the discount is calculated in plain english - that'll make turning it into javascript easier. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now