Cómo puedo saber cuando se hace un submit a un formulario por iframe?

  • mjerrymoises
    Fecha de consulta 8 de agosto de 2022, 16:49

    Buenas tardes me gustaría saber si hay alguna manera de saber si se hizo un submit en un formulario si se hace desde un iframe.

    Es que tengo un modal donde mando a llamar el formulario pero quiero que recargue la página al cerrar el modal solamente si el usuario hizo un submit.

  • Dagmar_B
    Fecha de respuesta 9 de agosto de 2022, 2:59

    Hello Jerry,

    Thanks for reaching out to Jotform. Our Spanish Support is not available at the moment, so I will try and help you in English with an automatic transaltion at the end. If I understand you correctly you have the Jotform iFrame embedded in a Modal, and want to close that only after the form has been sent.

    Unfortunately, that's not possible to implement, I mean, to accomplish the functionality you want as such, it would be required to add some code that it's not supported on our thank you page wizard. 

    If you want to reload the page only after the submitting of the form, maybe redirecting to the page again after the formis filled instead of to the Thank you page can solve the problem? You can find out how to redirect your form to another page here.

    *********SPANISH***********

    Hola Jerry, 

    Gracias por contactar con Jotform. Nuestro soporte en español no está disponible en este momento, así que intentaré ayudarte en inglés con una transalción automática al final. Si te entiendo bien, tienes el iFrame de Jotform incrustado en un Modal, y quieres cerrarlo sólo después de que el formulario haya sido enviado.

    Desafortunadamente, eso no es posible de implementar, es decir, para lograr la funcionalidad que usted desea como tal, se requeriría agregar algún código que no es soportado en nuestro asistente de página de agradecimiento. 

    Si desea recargar la página sólo después de enviar el formulario, tal vez redirigir a la página de nuevo después de que el formulario se llena en lugar de la página de agradecimiento puede resolver el problema? Puede encontrar cómo redirigir su formulario a otra página aquí.