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

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

  • July 28, 2020
  • 1 reply
  • 21 views

Forum|alt.badge.img

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

Tom_1842
Level 8 ●●●●●●●●
Forum|alt.badge.img+28
  • Level 8 ●●●●●●●●
  • January 8, 2023

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