SS
Asked
Somewhat related to my previous question. Except I can't find the solution to this one.
We have pre-defined notes for the payment note field. To enable these, I have placed <button>s below the note field. The intent is for the users to be able to click on a button and have it fill in the note field with that pre-defined note.
This is a simple task in a test page.
However, the problem I'm having is, when a button is clicked, the payment window closes.
Do you know how I can add in an on click handler that won't close the payment modal?
We have pre-defined notes for the payment note field. To enable these, I have placed <button>s below the note field. The intent is for the users to be able to click on a button and have it fill in the note field with that pre-defined note.
This is a simple task in a test page.
However, the problem I'm having is, when a button is clicked, the payment window closes.
Do you know how I can add in an on click handler that won't close the payment modal?
- MSAnsweredHello,
If the button is on modal, then it should not close the modal unless it's a submit button. You can set the `type="button"`
If you want to disable backdrop, you can add `data-backdrop` attribute to the modal div.
Thank you - Login to Reply