Paypal button link not going to...

User 187934 Photo


Senior Advisor
20,271 posts

Give this a try.
<script>
var Payment = [PaymentAmt];

document.write(Payment.toFixed(2));

</script>

Works here.
http://ericrohloff.com/coffeecup/ccforu … yment-amt/
My Confirmation.
<center>
<style type="text/css">
#docContainer table {margin-top: 30px; margin-bottom: 30px; width:80% !important;}
#docContainer td {font-size: 12px !important; line-height: 30px;color: #666666 !important; margin: 0px;border-bottom: 1px solid #e9e9e9;}
#docContainer td:first-child {font-size: 13px !important; font-weight:bold; color: #333 !important; vertical-align:text-top; min-width:50%; padding-right:5px;}
</style>
<br><br>
<h2>You entered</h2> $<script>
var Payment = [PaymentAmt];

document.write(Payment.toFixed(2));

</script>
<h2>Thank you!</h2><br/>
<p>Your form was successfully submitted. We received the information shown above.</p>
</center>

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 516429 Photo


Registered User
83 posts

Hi Eric, still not working. What is happening is that I get an script error when I try to save the code. Then it doesn't work when run. I've attached a screenshot of the message (undefined [PaymentAmt] I've even pasted in your complete confirmation code with the same results. Not sure why WFB doesn't like scripts .

Where are these confirmation pages saved? maybe I can open it out of WFB and make the change.
Thanks!
Attachments:
User 187934 Photo


Senior Advisor
20,271 posts

That's the notification email setup. I've been testing in the confirmation.
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 516429 Photo


Registered User
83 posts

I just tried the Confirm email too and get the same undefined error
User 187934 Photo


Senior Advisor
20,271 posts

Make sure your variable matches on the confirmation. The notification seems to need an alternate option to get it to format the variable.
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 516429 Photo


Registered User
83 posts

I've double checked it. The form variable is [PaymentAmt] If I do not use the script the variable [PaymentAmt] prints fine, just without the proper formatting.
User 187934 Photo


Senior Advisor
20,271 posts

Correct. The confirmation is a local variable where the notification isn't.
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 516429 Photo


Registered User
83 posts

I'm giving up on this. I tried the script on the confirmation and the notification emails and both gave errors. Not worth the time for me. I am just a detail guy and its a reporting error in php I think from what I've researched. Maybe it can be corrected in the next WFB update.
Thanks for the help.
User 187934 Photo


Senior Advisor
20,271 posts

I never worked with the confirmation email. My confirmation was the confirmation after submit. Getting the variables correct in the emails will require some alteration with some php.
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 516429 Photo


Registered User
83 posts

Well, no wonder. I never mentioned about the HTML after submit. It was always the emails. That's what the customers and the business receives.

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.