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

200
Visualizações
Multiple "add field" buttons for form field on Qualtrics using Javascript

I am trying to create a survey page in Qualtrics that has multiple form field questions. Responders may want to add up to 10 responses, but to streamline the UI, I want to initially only show one field, with the option to add a field if they need more than one field.

I have been able to make an "add field" button that works for the top question, but when I use multiple questions with the same Javascript, only the first "add Field" button works, and it adds the extra field for every question on the page. Clicking the "add field button" for subsequent questions doesn't seem to work.

Javascript code to create the "Add field button" can be seen below:

Qualtrics.SurveyEngine.addOnload(function(){

var cs = jQuery("#"+this.questionId+" .ChoiceStructure");
cs.find("tr:not(:lt(1))").hide();
cs.append("<input type='button' id='add' value='Add field' name='+' />");
jQuery("#add").on('click',function(){
    var c = cs.find("tr:visible").length;
    cs.find("tr:eq("+c+")").show(); 
});

});

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