Prefill text area next question based on previous answer

More
4 months 4 weeks ago #161134 by andrejkona
andrejkona created the topic: Prefill text area next question based on previous answer
I am doing research about tourism. So I have first question:

Choose city or village:
<script type="text/javascript" charset="utf-8">
 
	$(document).ready(function() {
 
		var choices = 'Badín,Baláže,Banská Bystrica,Brusno,Čerín,Dolná Mičiná,Dolný Harmanec,Donovaly,Dúbravica,Harmanec,Hiadeľ,Horná Mičiná,Horné Pršany,Hrochoť,Hronsek,Kordíky,Králiky,Kynceľová,Ľubietová,Lučatín,Malachov,Medzibrod,Moštenica,Motyčky,Môlča,Nemce,Oravce,Podkonice,Pohronský Bukovec,Poniky,Povrazník,Priechod,Riečka / okres BB,Sebedín - Bečov,Selce / okres BB,Slovenská Ľupča,Staré Hory,Strelníky,Špania Dolina,Tajov,Zbyňov,Žilina'.split(',');
 
		$('#question'+{QID}+' input.text').autocomplete({
			source: choices
		});
 
	});
</script>
This is textarea, where they start typing and write name of city or village.

In next question, I need them to confirm statistics. For example, they choose "Tajov" and here will be textarea with prefilled number, they can rewrite it or just leave it. For each city or village I have data and need to some script to link city name with date and prefilled textarea.

Thank you for your help
Andrej

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!