How to display the content of the text entry box as a paragraph | XM Community
Skip to main content

Hi,

I would appreciate anyone's help with this.

I want to display the content of text entry box as a paragraph.

Here is my code,

Qualtrics.SurveyEngine.addOnload(function()

{

jQuery('input:text').hide();

  jQuery(""type='checkbox']").change(function(){

    if(jQuery(this).prop("checked") == true){

    var v1 = jQuery(this).attr("id");

       jQuery("id*='"+v1+"~TEXT']").show();

       }else{

    var v1 = jQuery(this).attr("id");

      jQuery(";id*='"+v1+"~TEXT']").val('');

      jQuery("lid*='"+v1+"~TEXT']").hide();

    }

  jQuery("(id*='"+v1+"~TEXT']").css({

  float: 'left',

  width: '100%',

  height: '200px',

  margin: '20px',

  border: 'none',

  placeholder: "Please desribe",

  maxlength: '1000'

  });

  });

});

 

Thank you.

Hi ​@Small_J ,

Have you tried changing the text entry size to medium or large to see if it suits your needs?

 


Thank you for your prompt response Chee Heng_SZ! It works!


Leave a Reply