I'm working in a multiple choice question. There is a "others" choice at the end with an additional text entry field. I would like to know if it is possible to move the text entry field next to the "others" button, so that it's in one line.
Many thanks in advance for your help!
!
!
I attached a screenshot to my original post.
https://qimpl.az1.qualtrics.com/jfe/preview/SV_1RqO5Wzvc6QLdB3?Q_SurveyVersionID=current&Q_CHL=preview
This work for one other specify box...
add below code in JavaScript (OnReady Function)
var QID = this.questionId;
var QIDOtherLabel = jQuery("#" + QID).find(".TextEntryBox").siblings().attr("id");
jQuery("[id='" +QIDOtherLabel+"']").append(jQuery("#" + QID).find(".TextEntryBox"));
jQuery("[id='" +QIDOtherLabel+"']").css("padding-top","30px");
jQuery("[id='" +QIDOtherLabel+"']").css("padding-bottom","30px");
jQuery("#" + QID).find(".TextEntryBox").css("float","none");
At the moment it looks like this:
!
> @Mohammedali_Rajapakar_Ugam Related to your answer from the 8th of Oct: Is there a way to adapt the code so it works also for a multiple choice question with two other specify boxes?
>
> At the moment it looks like this:
>
> !
>
I also would like to know how to adapt the code so it applies to every instance of 'text box entry' in a single questions instead of just the first instance of 'text box entry'. Any guidance would be greatly appreciated!
> @Melissa said:
> @Mohammedali_Rajapakar_Ugam Related to your answer from the 8th of Oct: Is there a way to adapt the code so it works also for a multiple choice question with two other specify boxes?
>
> At the moment it looks like this:
>
> !
>
I also would like to know how to adapt the code so it applies to every instance of 'text box entry' in a single questions instead of just the first instance of 'text box entry'. Any guidance would be greatly appreciated!
I used this code and it worked!
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId+" .TextEntryBox").each(function() {
var tb = jQuery(this);
tb.css({"float":"none","background-color":"white","width":"100%"});
tb.prev("label").css("display","block").append(" ").append(tb);
});
});
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.