2 entry questions in a row | XM Community
Skip to main content
Question

2 entry questions in a row


Forum|alt.badge.img+1

Hi everyone,

Like the title says , i want customize the formulary option.

 

Something like this:

 

 

In one line , have 3 open text questions.

 

thanks,

 

2 replies

Sowrabh1993
QPN Level 5 ●●●●●
Forum|alt.badge.img+15
  • QPN Level 5 ●●●●●
  • 105 replies
  • July 6, 2023

Hi @PedroCartes ,

This post should help you. 

Please check if the data is captured correctly.


Tom_1842
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 867 replies
  • July 6, 2023

Hi, you can create multiple text entry columns by using a Matrix question type that is set to text entry type and then adding some formatting. Beneath a Text Entry question type that is set to Single line, create a Matrix question type and set its type to Text entry, statements = 1, and scale points = 3. Update the text of the scale points and then use the Rich Content Editor to align the scale point text to the left. Then, add the below to the question's JavaScript in the Onload section:

jQuery("#"+this.questionId+" .QuestionText").hide();
jQuery("#"+this.questionId+" .c1").hide();

And add the below CSS to the Style section of the Look & Feel:

.Skin .Matrix .TE td input {
width: 90% !important;
min-height: 50px !important;
text-align: left !important;
}

.Skin .ChoiceRow:hover {
background-color: transparent !important;
}

.Skin .QuestionOuter {
padding-bottom: 0 !important;
}

The 3 columns might get a little cramped on Mobile, so you could use display logic based on Device Type to show a Form Field question type to Device Type Is Mobile and then the above Matrix Text Entry to Device Type Is Not Mobile. Then combine those answers into a single field at the bottom of the Survey Flow.


Leave a Reply