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

191
Visualizações
Updating parent form with a select2 field when closing another modal form django

I am trying to add this functionality to my django app. I have a select2 field as a ForeignKey data type field in my main form. Now, I also got an "add" button right next to it that when clicked, opens a modal with another form. That form creates another instance for the select2 to look for, another entry, so that's good and settled. But, I want it to, when submitting the form in the modal, instead of the main form page being refreshed and having to refill all other fields again, it automatically selects the instance it has just created on the select2 field. I am fairly new to the front-end aspect of it all so it would be great to have some guidance.

about 4 years ago · Santiago Gelvez
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