1. netnog
  2. RO Payments
  3. Monday, 26 September 2022
  4.  Subscribe via email
Hi Roland,

After processing a payment (successful or not) I choose to show messages from ROPayments. That works well, only scrolling on the page to the message (as happens within RSForms) does not work. Is there a possibility to activate this?

Thanks in advance and best regards, Henk
Accepted Answer
Accepted Answer Pending Moderation
Hello Henk,

Thank you for the form. At first I still had my white page with the thank you message. Then it hit me, the form must be loaded in an article. So I tried that and still the message was at the top of the page.

After that I thought, what if there is a lot of text above the form, so I added a whole lot of text and behold my form was at the bottom of the page. After submitting the form and going back to the site, I also saw that the thank you message was below my screen due to the amount of text above it.

So, the solution to scroll to a message is to enclose it in a div tag like shown below. The X must be replaced by the form ID of your form.

<div id="rsfp-thankyou-scrollX">
<p>The payment is successful</p>
</div>
After making this change, the page will scroll to the thank you page. You can add the div tag by click on the Toggle editor button to see the source code of the text. You can then add the opening line before your thank you message:

<div id="rsfp-thankyou-scrollX">
and after that you can add the closing tag after your thank you message:

</div>
Let me know how it goes.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO Payments
  3. # Permalink
Sorry, the discussion is currently locked. You will not be able to post a reply or a comment at the moment.