Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Problem including PayPal button (form) in End Message

  • mfreund
  • mfreund's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago #174690 by mfreund
Hello all,

I am trying to incorporate HTML code for a PayPal button on the End Message of my survey. (I'm using it as a registration form for a program, and want to collect the initial deposit.)

We have been testing the survey, and when the PayPal button is clicked, it bounces back to the survey start page instead.

Why is this happening? Is there a way to prevent it?

Here is the button HTML (hopefully no security risks in posting it publicly here!):
Code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"><input name="cmd" type="hidden" value="_s-xclick" /> <input name="hosted_button_id" type="hidden" value="Q42D5WGCUGGCG" /> <input alt="PayPal - The safer, easier way to pay online!" border="0" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynowCC_LG.gif" type="image" /> <img alt="" border="0" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" /></form>
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174695 by DenisChenu
Did you test with disabling "Ajax mode" in theme option ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174703 by tpartner
You could use the end URL to redirect to an HTML page with your PayPal form.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174727 by holch
Might be a problem with having a form within a form...

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
5 years 6 months ago #174736 by jelo
What version of LimeSurvey and what theme is used?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • mfreund
  • mfreund's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 5 months ago - 5 years 5 months ago #174883 by mfreund
Thanks, everyone.

@jelo: I'm using LS Version 3.14.8+180829 using an extension of the "fruity" theme. (I know there is a LS update available, but have not yet updated.)

@DenisChenu: The Ajax Mode option is already turned off.

@holch: That was my suspicion, although since it is on the post-survey confirmation page, I would hope that wouldn't be the case...

@tpartner: I think that will be my short-term fix, although I'd love to eliminate that step.

Any other suggestions or possible fixes would be very appreciated!

—Max
Last edit: 5 years 5 months ago by mfreund.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose