Support is online

Scrolling to the message #73257

Resolved Locked netnog opened this topic Monday, 26 September 2022 · 7 replies
Author

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

Support

Hello Henk,

I am not sure if this is possible as RO Payments only fills the message for RSForm Pro, the rendering of the message is still done with RSForm Pro. I guess the message is somewhere at the bottom of the page?

I will have a look at this and get back to you to see if I can find anything.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hello Roland,

When I show the message in RSForms, the page automatically scrolls to the message field. Can't you call this RSForm-program code from RO Payments?
You can see the form here: https://www.pieterpad.nl/vrienden-van
Hope it works for you, then I can put this into production :-)
Thanks and regards, Henk

Support

Hello Henk,

Can't you call this RSForm-program code from RO Payments?

The thing is that RO Payments only sets the message RSForms does the rest. I have seen the form on your site but I cannot seem to create a form that behaves the way your form does. In my case I always see a sort of blank page with the result message.

Could you post a backup of the form so I can play with that to see what happens?

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hi Roland,
I definitely want to send you a backup of the form.
This is included as attachment. Hope you get on with this.

Kind regards,

Henk

Support

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

Author

Yes! tried it and it works great!
Thank you for your attention to this. It is strange that this is not necessary for the standard RSForm message, but for now it is solved perfectly.

Kind regards,

Henk

Support

Hello Henk,

My guess is that RSForms places this code around their message in the core. RO Payments cannot do that because the messages are used in more areas than just RSForms :)

Good to hear this works for you.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

This topic is locked. New replies are not possible.

Log in to reply to this topic.