Can this program do calculations? -...

User 139605 Photo


Registered User
83 posts

Hmmmm, I can't seam to get it to work. I think the problem is that your example here:

http://ericrohloff.com/coffeecup/ccforu … ningtotal/

only deals with the line total being entered by the user, mine has each line total being calculated based on the quantity the user entered. That second part is the added step I think that maybe your code doesn't take into account? I'm just guessing. Here's what I have so far, following the instructions in your above example:

http://www.postidol.net/ericformhelp/or … rform.html
User 187934 Photo


Senior Advisor
20,193 posts
Online Now

Give me some time and I'll take a look.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 139605 Photo


Registered User
83 posts

Dude! Thank you so much for your help! :)
User 187934 Photo


Senior Advisor
20,193 posts
Online Now

I have it working here.
http://ericrohloff.com/coffeecup/ccforu … ost_grand/
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 139605 Photo


Registered User
83 posts

Hey thanks Eric. Umm, but the output in the email looks weird...

Hey there,
Someone filled out your form, and here's what they said:

Item 1 - $13.00/ea: 2.22222222222E+75
Cost: 2.88888888889E+15
Item 2 - $22.00/ea: 2.22222222222E+51
Cost: 4.88888888889E+52
Submitted On: 2014-06-20 01:34:10
User 187934 Photo


Senior Advisor
20,193 posts
Online Now

Did you update the form with my script? It still looks the same to me.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 139605 Photo


Registered User
83 posts

No, I had just gotten that email sent to me, I assumed it was you. Ok, let me try that. Sorry.
User 139605 Photo


Registered User
83 posts

Here it is, but it doesn't seam to be totaling. And when I submit, in the email it doesn't show the decimal places. Like, instead of $26.00 it's only showing: 26

http://www.postidol.net/ericformhelp/or … rform.html

Sorry for the hassle.
User 139605 Photo


Registered User
83 posts

Ok, got the total to start working. Everything seams great Eric. Now just a small, probably silly question. How can I get the $ and two decimal places (ie: $26.00) to appear in the results both on the form and in the email that is received? Sorry, I just know my client is gonna be a stickler for this.

Thank you so very much for your help. You have been a lifesaver!
User 187934 Photo


Senior Advisor
20,193 posts
Online Now

For the total change it to a text input and then alter one line in the script. When you change it to text you'll need to make a change to the ID hook. item666_number_666
$("#item666_number_666").val('$'+sum.toFixed(2));


http://ericrohloff.com/coffeecup/ccforu … ost_grand/
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.