I want to send the form data to an 3rd party API on submit and then want to show the response of API to user instead of sending them to thank you page. Do any one have idea how to achieve this in WIX?
Please suggest.
Just don’t link the button to Save and implement your code instead.
Reference: https://www.wix.com/code/reference/$w.Button.html#onClick
Or implement onBeforeSave on your dataset.
Example: https://www.wix.com/code/home/example/Custom-Validations
Enjoy, Erez
I managed to run my API before form submit but after submission i want to show the response returned from API instead of thank you message. How I can do that?
And can you let me know how to send data in fetch post request?
In which way you will like to present it?
You can open light-box and send it the API result as object and in the onReady of the light box you will implement the presentation in the light-box. Opening light box article: https://www.wix.com/code/reference/wix-window.html#openLightbox
ok i will give it a try. Can you let me know how to send form data to a 3rd party API through POST method in fetch?