Show a total $ Amount

User 2461870 Photo


Registered User
15 posts

I want to create a form with checkboxes that add $0.99 to a total payment. I would like a total owing Counter, if you will, to show the amount an order is currently at.

Possible?
User 187934 Photo


Senior Advisor
20,181 posts

Jquery can do this.:cool:
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 464893 Photo


Ambassador
1,611 posts

I think what you are after is a dynamic php page that is dedicated to your list of products.Each check causes the page to recalculate the value of the current amount and refresh the page. There are a few scripts showing the use of On-click command which I believe would drive the calculations.

I think it a bit beyond the scope of WFB at present
The Guy from OZ


User 187934 Photo


Senior Advisor
20,181 posts

I'm doing it with JQuery on a form I just altered.
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 418470 Photo


Registered User
101 posts

I want to do the same thing - more keep a running tally so there are no surprises to the customer on the next page. I know nothing about php or jquery. Could you provide some examples please?
I should have something clever to say... but I don't.
newurbanpantry.com https://www.newurbanpantry.com
frankelmo.com http://www.frankelmo.com
User 187934 Photo


Senior Advisor
20,181 posts

This thread should help you out.:)
http://www.coffeecup.com/forums/web-for … post214526

Or even better.:lol:
http://ericrohloff.com/coffeecup/ccforu … ningtotal/
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 74729 Photo


Registered User
14 posts

I need to make a simple total cost from the contents of 3 dropdown boxes.

I've looked at the running total code - not all that familiar with jquery, but looks like javascript - I've been retired from programming for a few years, which is why I bought this form software. I have looked at these posts and appreciate learning where to find the actual form html and add scripts.

Anyway I have 3 fields that I simply want to add together, after they make the selections from the 3 dropdown boxes (A, B, C). Not using any of the payments options - people have to mail their checks in. This is just a registration form, adding together 3 fees.

I need to total:

selected contents of dropdown box A
+ selected contents of dropdown box B
+ contents of dropdown box C

and then display it in a read-only field which I can then add to the confirmation page and email.

I'd really appreciate any code for a script to do this.

The form is here:

http://rgrecorders.org/2013wsreg/2013WS … ation.html


User 187934 Photo


Senior Advisor
20,181 posts

Hi Sylvia,
Go ahead and follow the instructions on my form. I don't know how to explain it any clearer. It's probably because your not familiar with your forms setup. After you mess with it a while and do a manual export go ahead and locate the myforname.html. We can guide after you give it a try.:)
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 74729 Photo


Registered User
14 posts

Thanks Eric, I can how the script works with number fields, and I've found the generated form code. I'm quite familiar with html code. My dropdowns are not number fields, but text - so what I don't know how to do is extract the numbers. Or I guess what I need to do add a number field for each and then fill in the number field based on the selection, but I don't see any way to do that. Is there a way to do that or a better idea? Thank you.
User 187934 Photo


Senior Advisor
20,181 posts

So you want to assign the values I see in the drop downs?
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.