Skip Navigation

[Gelöst] After visitors submit form – go to top of page (Thank you message)

This support ticket is created vor 6 Jahren, 7 Monaten. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Dieses Thema enthält 9 Antworten, hat 3 Stimmen.

Zuletzt aktualisiert von leilaG vor 6 Jahren, 6 Monaten.

Assistiert von: Beda.

Author
Artikel
#785223

We have a side bar on our form pages - versteckter Link

When a visitor submits the form, the thank you message is at the top of the page, but you have to scroll back up to see it, is there any way to send the visitor to the top of the page to see the thank you message?

#786368

At this time, it is not possible to scroll to a specific part of the page automatically. Instead, you can place the form_messages shortcode(s) in location(s) that are visible when the client submits the form.

[cred_field field='form_messages' value='' class='alert alert-warning']

If you'd like to request this as a new feature, I will be glad to transfer this ticket to Beda for analysis. Let me know how you would like to proceed.

#803685

Yes i have that code at the bottom of the form, but because the page has a side bar, the message appears at the top of the page, but the page stays at the bottom showing empty space.

Yes please if you could transfer the ticket that would be great!

#809633

I am not sure I understand the issue here.

You can redirect to a page with just a thank you message, for example.

Then you do not need to worry about scrolls - which will be a pain again when you deal with mobile screens or unusually positioned screens, eventually.

I suggest pointing that Toolset Form (Former CRED Form) to a page, where you insert a Thank you message.

Maybe I misunderstand the issue, can you show me an example of how it works and should work instead?

#855183

versteckter Link
versteckter Link

On the above forms that have side bars, when a user submits the form, the thank you message is shown at the top of the page, but the page position stays at the bottom, showing blank white space.

#856093

This rather looks like a bug.

Please submit me a copy of that site if possible, so I can see why this happens.

#857767

Do you mean me to create a new staging instance?.
Because the one that exists, versteckter Link, seems to not work with the provided login details (as it's an older copy)

Could you set up a copy of the current site and share those log in details with me?

I can then try a few things:
- fix the issue there or spot it there
- try to grab a copy of the database and files to deploy locally.

I wanted to ask, referring to this:
https://toolset.com/forums/topic/after-visitors-submit-form-go-to-top-of-page-thank-you-message/#post-803685

Basically what we see is the right behaviour.
It should scroll to the bottom as you inserted the shortcode there.

But, due to framework limitations (probably), your message gets pushed up (by the sidebar).

I do not think this is a problem in Toolset Forms but in the HTML used for the main content and sidebar.

The error message is part of the form, it can usually not be displaced unless the wrapping HTML is corrupt.

On a staging site I will do some tests and see if I can confirm this.

#867153

I just tested again, so did Minesh from our team, we both cannot log in.

It says:

ERROR: The password you entered for the username (hidden) is incorrect. Lost your password?

(I have hidden the username of course from above message.

Can you check if you have some IP restrictions or other security plugins active and the password matches the username?

#871966

These worked!

Thank you, I was now able to log in.

I had to disable Recaptcha as the staging site is not registered for it.

Then I see you activated 2 Google Maps plugins, which will produce issues in your site as you can see in the console - it's not possible to run 2 Google API's on the same site, you need to decide for one.
I see that even the Theme seems to bring Google Maps, so it means it's actually loaded 3 times.

In fact, if I disable all plugins inclusive Toolset Maps, all JS errors are gone.
It seems the Theme already delivers maps.

After these steps, the issue is gone.
The page does not scroll falsely anywhere but simply displays the Message properly there where you insert it.

It even works if you enable Toolset Maps again, which produces a lot of JS errors on this site due to the conflict with the other API of the Theme, but it still works.

Hence this is a compatibility issue, and not a feature request of something that we need to add.

We would need to know what plugin conflicts with Toolset Forms, and then we can try to get in touch with the authors of that plugin, so to fix the issue.

You can see what plugin is responsible by reactivating each one and retesting the issue for each plugin.

If you want me to test with Recaptcha active as well, please could you connect the site to your API?

#876862

Thank you for the information and troubleshooting, I will work on reducing the google map API's used.

We would need to know what plugin conflicts with Toolset Forms, and then we can try to get in touch with the authors of that plugin, so to fix the issue.

Once I have found out the above I will open a new ticket.