0

Hello everyone I have an iframe displaying in a angular stepper function like this

<iframe id="prompt" class="first" [src]="promptHtml"></iframe>

the src is an external source of data.

After the User has clicked submit in the form they have to manually click "next" to get to the next step in my Angular wizard.

My question is how can I detect the user clicking submit in the iframe and then trigger some angular code to go to the next step in my process?

mruanova
  • 6,351
  • 6
  • 37
  • 55
YanniGen
  • 13
  • 4
  • `onLoad` might help you. See: https://stackoverflow.com/questions/2429045/iframe-src-change-event-detection - you can then look at what's being loaded and react to that - perhaps even handling errors. – Alex Magill Mar 18 '19 at 17:28
  • Hmm yeah that might work, ill try console logging the onLoad and seeing what responses I get. Maybe there is a different response for when the user completes the form and I can write some logic around that. – YanniGen Mar 18 '19 at 18:20

0 Answers0