Add simple addition between form...

User 2899324 Photo

Registered User
1 post

If you've ever used Apple's website to configure your new computer, you'll understand what I'm trying to do.
See this Apple link: … ep=config#

I need each radio block to have a number field showing the dollar amount for whichever radio button is selected. At the end of the form, above the Submit button, I need to show the total dollar amount of all items selected. This also needs to be included in the response email to me and client. I'm hoping WFB can handle this task.

I built a form using Formoid but I like Coffee Cup so I'm changing over.
On my website I added "OnClick" on each selected radio button with a corresponding price to show up via a simple function. I already set up the math to show up on my test website but it's freestanding within the site. I don't know how to add it to to the PHP to be included in the response email.

Getting the math to work and print to screen on web page isn't too hard. I've got that done. I was hoping that since there's a "Price Input" field that I could get this handled and have this info emailed within the form. See attached screenshot.

Any ideas?
Thanks in advance.

User 187934 Photo

Senior Advisor
19,665 posts

Hi Michael,
If your already getting the values of the inputs use JQuery to place that value into a hidden input or a total Input and $_POST it with the rest of your values.
On the PHP processing page you would have
$total = $_POST['total'];

Than you can use the $total in your email script.
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)
This is a site I built for use in my job.(HTML Editor)
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)

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.