Paypal button link not going to...

User 516429 Photo


Registered User
83 posts

Just found an error in the cancel or success inputs.

Wrong:
<input type="hidden" name="success_url"value="http://www.whiteoconnellphoto.com/send-money/sendmoney-thankyou.html" />
<input type="hidden" name="cancel_url"value="http://www.whiteoconnellphoto.com/send-money/sendmoney-paymentcancelled.html">

Right:
<input type="hidden" name="return"value="http://www.whiteoconnellphoto.com/send-money/sendmoney-thankyou.html">
<input type="hidden" name="cancel_return"value="http://www.whiteoconnellphoto.com/send-money/sendmoney-paymentcancelled.html">

I'll try the variable setting. Thanks!
User 516429 Photo


Registered User
83 posts

[PaymentAmt].00

Funny, only works if the customer enters an even amount. If they enter 22.52 it shows as 22.52.00
or 22.50 is 22.50.00
User 187934 Photo


Senior Advisor
20,271 posts

Try this.
<script>
var Payment = [PaymentAmt];
var Decplace = ".00";
if( Payment % 1 != 0) {
document.write(Payment);
}else{document.write(Payment + Decplace);}
</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)
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

Eric, where would I put the code? I tried adding it to my Notification Email but it comes up with a script error as PaymentAmt is undefined
User 187934 Photo


Senior Advisor
20,271 posts

Paste the code in place of where you had the [PaymentAmt] on the notification or 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 did but I get the same error as undefined "PaymentAmt" . ran the form anyway but the amount only shows in the first [PaymentAmt] variable, not the one in the script.

Here is part of the code on the page:

<div style="width:100%;font-family:'Courier New', Courier, 'Lucida Sans Typewriter', 'Lucida Typewriter', monospace;font-size:15px;color:#474747;">

<script>
var Payment = [PaymentAmt];
var Decplace = ".00";
if( Payment % 1 != 0) {
document.write(Payment);
}else{document.write(Payment + Decplace);}
</script>

Amount Paid [PaymentAmt]
[_form_results_]</div>
User 187934 Photo


Senior Advisor
20,271 posts

Works fine for me.:cool:
http://ericrohloff.com/coffeecup/ccforu … yment-amt/
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

Puzzled, I used one of the default webforms and just inserted the [PaymentAmt] script. I get a script error when the program tries to save the page, and the script doesn't do the conversion.

What's the source code of the results page you display please?
User 516429 Photo


Registered User
83 posts

just noticed on your demo that if you entered something like 2.50 you get a result of 2.5. Works fine though for amounts like 2.00 or 2.63
User 516429 Photo


Registered User
83 posts

Eric, do you think it's a formatting error thats part of Form Builder? I'm sure I can't be the only one that gets the missing 00 s on the confirmation page. I bet it effects any numeric values that have 0's at the end. Microsoft word does that also if the field is numeric and has to be converted to text for it to print correctly.

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.