IMPORTANT!!!!!!! I need add text entry row and remove by button or automatically. | XM Community
Question

IMPORTANT!!!!!!! I need add text entry row and remove by button or automatically.

  • 28 July 2020
  • 1 reply
  • 7 views

Userlevel 2
Badge

I need add text entry row and remove by button or automatically. Like someone fill text entry then second text entry will add. client is needed so there is any way to get by buttons or automatically. Plz client needed this alot with data saving. Thnak You


1 reply

Userlevel 7
Badge +27

Hi there, if you still need, I was able to put this in place with a button by tweaking the code in this thread. Try creating a Form Field question and adding the below to the question's JavaScript in the OnReady section:
var that=this.questionId;
jQuery("#"+this.questionId+" tr:not(:eq(0))").hide();
jQuery("").insertAfter("#"+this.questionId+" tr:last");
jQuery("#add").on('click',function(){
        var c=jQuery("td.ControlContainer:visible").length;
        jQuery("#"+that+" tr:eq("+c+")").show(); 
    });
FormFieldAdding.png

Leave a Reply