drop down menu

M

Merrae McCann

I want to replace a drop down menus in my Order Form to form fields that
contains a dollar figure which can be used to calculate a total based on
quantity. I used to have more than one "each price" and so I needed a drop
down menu. Now, I only have one price and don't need a drop down menu. If I
try to change it to a text field and type in the price; i.e. $18, it will not
calculate a total. What type of field can I replace the drop down menu with
that will calculate the total. If you need to see what I am talking about,
please look at my order form: www.notecardsbymer.com/orderform.htm. All of
the drop down menus that contain the "each price" are needless. Hope someone
can help! Thanks much!
 
S

Stefan B Rusynko

None of those single prices should be any type of form field
- just plain text on the page
(you don't want text fields because users may be able to change them)

Then edit your individual JavaScript calculations to enter the unit price right in the code as in
// subtotal of item 1
count = new Number(document.FrontPage_Form1.qty_1.value);
price = 18
document.FrontPage_Form1.card_1_total.value = price * count;
total += price * count;

and so on
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I want to replace a drop down menus in my Order Form to form fields that
| contains a dollar figure which can be used to calculate a total based on
| quantity. I used to have more than one "each price" and so I needed a drop
| down menu. Now, I only have one price and don't need a drop down menu. If I
| try to change it to a text field and type in the price; i.e. $18, it will not
| calculate a total. What type of field can I replace the drop down menu with
| that will calculate the total. If you need to see what I am talking about,
| please look at my order form: www.notecardsbymer.com/orderform.htm. All of
| the drop down menus that contain the "each price" are needless. Hope someone
| can help! Thanks much!
| --
| Merzie
 
M

Merrae McCann

Stefan...thank you so much! I have been trying everything to fix this
problem. Now that I see what you did, it makes sense. For some reason, I
thought I needed a form field to contain that information.

Again, I appreciate your time and assistance...thank again!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top