Results 1 to 5 of 5
  1. #1
    Star Lounger
    Join Date
    Oct 2001
    Location
    Blakeslee, Pennsylvania, USA
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Calculating Form Fields (Frontpage 2000)

    I have a number of fields in a form and I would like to be able to add up these fields and get a total at the bottom that I can pass both the information from the fields and the total of them to another page

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Calculating Form Fields (Frontpage 2000)

    Do you need the total to appear before the user submits the form, or can it be calculated on the server and then displayed on the new page? The first requires client-side scripting, such as JavaScript, while the second could be accomplished by a number of different methods. However, I'm not sure if any of those methods are built in to FP's forms handler.

  3. #3
    Star Lounger
    Join Date
    Oct 2001
    Location
    Blakeslee, Pennsylvania, USA
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Calculating Form Fields (Frontpage 2000)

    Well I would like the total to display on the bottom of the form before submitting then submitting to the next form would calculate things such as shipping and Tax if nessecary. I know some ASP scripting I have a website with all asp pages but the order forms I have in there are for only a few items and then they are calculated on the next page because of quantity. This is a page which has a base computer at ex: $500.00 then upgrades to the system would be extra and I have created drop down fields for the upgrades but if someone choooses the upgrades I need them to calculate so they know the cost before proceeding and then I need the info from those fields and the total cost to appear on another form where they would enter their personal information and then that form would be submitted to proccess at a company like authorize.net.

    Thanks

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Calculating Form Fields (Frontpage 2000)

    I haven't coded it myself, but I think you tie a script to each control's onblur event, which should fire when the user exits the control, to run one global routine to recalculate the total. There might be a more sensitive way to do it, that would detect a changed selection in a drop down list, for example, but...it's all new territory to me.

    You might quickly scan the HTML board for Leif's posts on JavaScript resources. It's a good bet that this script already exists out there.

  5. #5
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Calculating Form Fields (Frontpage 2000)

    <big><font color=red>This discussion has shifted to the HTML board,</font color=red> here</big>.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •