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

How to display the content of the text entry box as a paragraph


Forum|alt.badge.img+1

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("[id*='"+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.

2 replies

Forum|alt.badge.img+16

Hi ​@Small_J ,

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

 


Forum|alt.badge.img+1
  • Author
  • 1 reply
  • March 12, 2025

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


Leave a Reply