Nov 24 2022
09:24 AM
- last edited on
Aug 03 2023
05:12 PM
by
TechCommunityAP
Nov 24 2022
09:24 AM
- last edited on
Aug 03 2023
05:12 PM
by
TechCommunityAP
I am embedding a Microsoft Form on my website. I want to capture the event when the form submits successfully. Below is the embedded code and I want to run my custom JavaScript code on form submit.
<div>
<iframe width="640px" height="480px" src="https://forms.office.com/Pages/ResponsePage.aspx? id=BiopSuv_ckSNqp3fkzLnW_NGlVhpUkdKjXPYvQce5XRUQzgwTExXOU0wMlFIT0hFWUpIS04zTlhRVi4u&embed=true" frameborder="0" marginwidth="0" marginheight="0" style="border: none; max-width:100%; max-height:100vh" allowfullscreen webkitallowfullscreen mozallowfullscreen msallowfullscreen> </iframe>
</div>
Nov 24 2022 12:08 PM - edited Nov 24 2022 12:10 PM
@mimranyaseen the normal way to do things is to use a flow in Power Automate. What is the script meant to do?
Nov 24 2022 12:43 PM - edited Nov 24 2022 12:45 PM
@RobElliottthanks for your reply. Actually, i want to call a method on my web page when the submit button submits successfully. I will use window.parent.postMessage to send message to webpage that hosting iframe.