Can anyone please help me with adding default text that can be different for each of the following fields, this is a form field question. I have the same issue with multiple choice question where I add a text entry box to each option and I want to add a different default text in each box.
Thank you
Hi there, try adding the below to your Form Field question as Javascript in the OnLoad section. Change the "Placeholder#" text as needed.
jQuery("#"+this.questionId+" input[type=text]").eq(0).attr("placeholder", "Placeholder1");
jQuery("#"+this.questionId+" input[type=text]").eq(1).attr("placeholder", "Placeholder2");
jQuery("#"+this.questionId+" input[type=text]").eq(2).attr("placeholder", "Placeholder3");
Many thanks Tom_1842!!
HI
Just tried it but it is still asking to put value on it
Hi
jQuery("#"+this.questionId+" inpututype=text]").eq(0).attr("value", "Value1");
jQuery("#"+this.questionId+" inpututype=text]").eq(1).attr("value", "Value2");
jQuery("#"+this.questionId+" inpututype=text]").eq(2).attr("value", "Value3");
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.