Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

201
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda