Help

Display success message after HTML form submitted

1566 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Ludo_Figueiredo
5 - Automation Enthusiast
5 - Automation Enthusiast

Hello,

I am coding a specific HTML form with google script and airtable. I am using the webhook automation with my HTML form (using action=" URL of my airtable webhook ").

 

 

<form class="form_style" id="subscription_form" action="https://hooks.airtable.com/workflows/v1/genericWebhook/app5FlLF4JRKgnLGQ/wfle1FROme98xqd3d/wtr9QlkcULz" method="POST">

 

 

All work fine but I am always redirected to the airtable success message. 

Ludo_Figueiredo_1-1672660877540.png

I tried to use AJAX with google script and Airtable but had no success (I saw that CORS is a problem with webhook automation). I want to stay on the page and display a success message (form submitted on the same page). Could it be possible and could you help me, please? 

Ludo_Figueiredo_0-1672661665559.png

Best regards

2 Replies 2
Jon_Techilovsky
6 - Interface Innovator
6 - Interface Innovator

I have the same issue, not found a solution yet 😕

Hello, I use :

formulaire.addEventListener('submit', function(event) {
         event.preventDefault();
      });

to avoid the page to be redirected.