Hello, everyone.
I have a form on my website and, on submit, I need that the data goes to https://backend.com (that will do some stuff with the data) and that the user be redirected to another URL, like https://user-arrives-here.com
I’m using a serverless architecture on my backend, and handling the requisition with a simple test:
exports.handler = async function(context, event, callback) {
console.log(event);
callback(null,{
statusCode: 200,
body: JSON.stringify({
message: 'Esta é uma mensagem de retorno',
input: event,
}),
});
};
And I configured the form like this:
However, when I submit the form I go to the action url, and not the redirect url.
I’m struggling with this, can someone help me?
Here is my site Read-Only: LINK
(how to share your site Read-Only link)