Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

233
Visualizações
Reloading a parent section using the "data-tf-on-close" callback of Typeform

I'm building something in a lo-code / spaghetti solution environment, combining Airtable as a database, Typeform, and a front-end platform called Softr. (Not my idea, but it is my headache.)

I have a section on a page called #button-list which searches a cell an Airtable table. If the cell is empty, it returns a button to a Typeform. If the cell is filled, it returns the results from the Typeform form.

When the button is clicked, it opens up a modal with a Typeform on the side of the page.

The relevant section of the button code is:

<button data-tf-slider="yyyyy" data-tf-on-close="function(){document.getElementById("button-list").reload();}" data-tf-auto-close data-tf-iframe-props="title=Typeform" data-tf-hidden="uid=xxxxx," ">Start</button><script src="//embed.typeform.com/next/embed.js"></script>

(yyyyy and xxxxx are substituted for the relevant user's information.)

On close of the the Typeform, I'd like the section to refresh, so you see the results instead of the button. So I'm trying to use the data-tf-on-close callback in order to refresh the section.

I'm not sure if I'm going down the right path or not. Should it be parent.document.getElementById("button-list").reload(); because the modal is closing, so it's technically not the document? Should I be setting up some sort of emitter, so I can set up an event listener on the page to reload the section? Do I simply have the syntax wrong? Am I missing something simple? Is this not possible?

Thank you.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda