Thewf Posted March 9, 2020 Report Share Posted March 9, 2020 Hello, I have a payment form embedded on my webpage. When the payment is submitted I am trying to have a listener for the submission and have it do various things. I have tested out an on click event that works for the form, and the function I have inside works properly, but onsubmit is not working like I would like. Here is what I have. Does anyone have any advice? document.getElementById('caspioform').onsubmit = () => { //do various things } Quote Link to comment Share on other sites More sharing options...
cheonsa Posted March 17, 2020 Report Share Posted March 17, 2020 Hi @Thewf, Have you tried to disable the Ajax loading for that DataPage? Quote Link to comment Share on other sites More sharing options...
SinJunYoung Posted January 30, 2021 Report Share Posted January 30, 2021 On 3/9/2020 at 10:45 AM, Thewf said: Hello, I have a payment form embedded on my webpage. When the payment is submitted I am trying to have a listener for the submission and have it do various things. I have tested out an on click event that works for the form, and the function I have inside works properly, but onsubmit is not working like I would like. Here is what I have. Does anyone have any advice? document.getElementById('caspioform').onsubmit = () => { //do various things } Hello, may I know if this payment is under the standard features? It may not be secure if it's just a custom code and you might want to look into this one: https://howto.caspio.com/datapages/forms/accepting-payments-in-your-application/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.