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

208
Visualizações
How to hide and show the input element conditionally while input onchange trigger in vueJs

I am using v-form-builder from https://github.com/sethsandaru/vue-form-builder .

I am trying to show and hide the fields & sections of the forms depending upon the business logic. I am able to hide the fields by applying additionalContainerClass “d-block”. But by doing so, other fields which had the values visible, they also goes blank.

To achieve this, I have used the following call-backs of vueJs.

mounted() {
  //check the fields to hide
  // hide the fields found by applying using the following code
  this.formData.sections[action.field_section_id].additionalContainerClass = "d-block"
}

Now, as soon as the class of “d-block” is added to the field_section, other fields which had the values inserted, gets blank. Here is the video recording of the issue.

https://drive.google.com/file/d/1ztF22iGOW0msR3MAfG13qmgn7zo-4jh_/view?usp=sharing

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