. I would like to ask if it is possible for me to hide the picture again. Some people said to me to use JS code. Can someone help me with what I should put in the Java script code? I am not familiar using javascript.
Thank you very much for your help.Solved
Javascript code for show and hide information
Hi all,
I plan to provide information below my question by using a picture after the multiple choice question. I hide the information through Display Logic. I attached the screenshot. If people choose, "yes, show the evidence example", a picture will be shown. !
. I would like to ask if it is possible for me to hide the picture again. Some people said to me to use JS code. Can someone help me with what I should put in the Java script code? I am not familiar using javascript.
Thank you very much for your help.
. I would like to ask if it is possible for me to hide the picture again. Some people said to me to use JS code. Can someone help me with what I should put in the Java script code? I am not familiar using javascript.
Thank you very much for your help.Best answer by Anonymous
Hello @Sherly ,
Paste the below code in the js(OnReady) of the multichoice question
Assuming the first option of multichoice question enables hide/show property of example image question. Also, the page have only two questions i.e Multichoice question and example image question
var that=this.questionId;
jQuery("#QID2").hide();
jQuery("#"+ this.questionId+" input[type='radio']").on('change',function(){
if(jQuery("[id='QR~"+that+"~1']").prop('checked')){
jQuery("#QID2").show();
}else{
jQuery("#QID2").hide();
}
});
Replace "QID2" with the question ID of the example image question
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
