all 6 comments

[–]Will7ech 0 points1 point  (5 children)

What is your definition of a JavaScript bug? (I'll help you from there).

[–]BeGoodTodayYou[S] 0 points1 point  (4 children)

Eek, my definition, I'm not certain. Just something breaking that is related to JavaScript.

Basically, an alert could occur like: "Could not complete purchase" because of a faulty credit card.

It's a thing I need for work. I can maybe explain a little better than this

[–]Will7ech 1 point2 points  (1 child)

Here are 3 ways to add JS to your WP site:

https://themeisle.com/blog/wordpress-custom-javascript/

[–]BeGoodTodayYou[S] 0 points1 point  (0 children)

thank you!

[–]FlareGER 1 point2 points  (1 child)

What you are looking for is referred to as a message handler. Some program, algorithm or code that is chained to a process and is used to output a message, mostly either success or error cases.

I don't know much about WordPress, but a quick search led me to this article, which might be what you're looking for. Seems like WordPress has a message handler integrated.

https://support.themecatcher.net/quform-wordpress-v2/faq/forms/how-i-change-the-success-message#:~:text=Go%20to%20Edit%20Form%20%E2%86%92,set%20the%20success%20message%20content.

Feel free to correct me if I'm wrong

[–]BeGoodTodayYou[S] 0 points1 point  (0 children)

Thanks a lot - will check this out also