Help

Get information on the parent page when an embedded form is submitted

Topic Labels: Data
1040 3
cancel
Showing results for 
Search instead for 
Did you mean: 
jpbourdais
4 - Data Explorer
4 - Data Explorer

Hello
I'd like to know if it's possible to trigger a post_message event when the form is submitted (this is for an embedded form). I've seen that the system is already used to manage iframe scrolling with the "airtableDisableScrollbar" post_message.
Having information on whether the form has been sent (and whether it was successful or not) would be very useful for managing other events on the "parent" page on which the form appears.

If this is not possible with this solution. Is there another way to do this?

Thanks in advance!
Sincerely

3 Replies 3
Sara
8 - Airtable Astronomer
8 - Airtable Astronomer

Hi, I don't know if I understand correctly. Correct me if I understood wrong, but you want to set up an automation that every time a form is submitted, it will send you an email to let you know that another person submitted it. If I understand correctly, yes, it is possible. Is it correct? 

Sara
8 - Airtable Astronomer
8 - Airtable Astronomer

If I understood correctly, you have just to create the form in the "parent" page, so every time a form is filled out a new row is created and created an automation.  You select "Automation" on the top

Sara_0-1699386436525.png

Sara_1-1699386574737.png

you add your email and all the info that you want to know in the email.  If you want to have a different email if it is successfully created, you can create a new column with a checkbox that is V only when all the info are fill out. In this case, you have to create a new automation: 

Sara_2-1699386827334.pngSara_3-1699386883517.png

and after create a new automation to send the email:

 

Sara_4-1699386951915.png

(the second step is like before) and create another one when the checkbox is not fill out.

 

Otherwise, you can create also one automation for both email with the conditional methond:

Sara_5-1699387116654.png

Let me know if you have any other questions or If I misinterpret your question 🙂 

 

 

 

Hello Sara,
Thank you for your reply!

Unfortunately, that's not what I'm trying to do. I'll try to go into more detail about my problem:

I've integrated an Airtable form on a website like this (The form is normally longer, but for the screenshot I've reduced it) :

jpbourdais_0-1699433500942.png

I'd like to know if it's possible when sending the form to get the information in JavaScript if it has been sent so that I can display or redirect the user to another page of the site.
I don't want the confirmation page to be displayed only in the iframe, but entirely on the site.

Currently, when I have a longer form, the iframe adapts to the form, but when the form is submitted, the iframe doesn't resize (see examples below). You have to scroll down the page and when I send the form, the confirmation message is in the middle of the iframe. The user doesn't see the confirmation message and can get lost.

Here are some examples of the form confirmation once the form has been sent.

Unzoom the page for the example :

jpbourdais_1-1699434300076.png


What the user sees when the form is submitted :

jpbourdais_2-1699434441779.png

 

I hope I've given more details about my problem.

Have a great day!
Sincerely