Hi champs,
I have the below question where “others” appears 3rd in the list and would like to show the text box only when respondent selects others.
What would be the best way to achieve this?
Hi champs,
I have the below question where “others” appears 3rd in the list and would like to show the text box only when respondent selects others.
What would be the best way to achieve this?
Hello
I suggest following these steps:
Let me know if this helps.
Thanks for replying Sachin.
Due to some scenario of grouping, we need to keep the others option above in the list and can’t fix that at the end.
Also, if we move it to another question, it would still look like it’s a different question.
We are looking for a option to show it there itself.
I’ve used this in the past to show the text input when the checkbox is selected and to hide when unselected. Try adding the below to the question’s JavaScript in the OnReady section:
var qid = this.questionId;
jQuery('#'+qid+' input:text').hide();
jQuery("#"+qid+" dtype='checkbox']").change(function(){
if(jQuery(this).prop("checked") == true){
var v1 = jQuery(this).attr("id");
jQuery("rid*='"+v1+"~TEXT']").show();
}else{
var v1 = jQuery(this).attr("id");
jQuery("rid*='"+v1+"~TEXT']").val('');
jQuery("rid*='"+v1+"~TEXT']").hide();
}
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.