Custom form action problem when error thrown #13584
ghost
announced in
Developers Community
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've written a custom form action which at the moment, simply queries a URL and hopefully returns some json. I was just testing the function with an invalid URL ( using wp_remote_get() ), and I expect a message in red to appear on the webpage under the form.
Looks like it's working fine when editing the page in Elementor.
However, with a live page - it doesn't show the form error at all and throws a console error instead.
Anyone know how to fix this? I can post more code if requested.
Here is the Run function.
Beta Was this translation helpful? Give feedback.
All reactions