I've set up a custom drilldown question in my survey that lets people choose their location step by step. They can pick from four dropdown menus, which are filled out by a piece of code that looks like this:jQuery(document).off('change', '#QID1_dropdown').on('change', '#QID1_dropdown', function () { var provinceId = jQuery(this).val(); Qualtrics.SurveyEngine.setEmbeddedData('provinceId', provinceId); if (provinceId) { jQuery('#QID2_dropdown').empty().show().append('<option value="">Select City/Regency</option>'); console.log("Fetching cities/regencies..."); jQuery.get('https://mybackendwebsite.com/cities_regencies/' + provinceId, function (data) { var cityRegencyDropdown = jQuery('#QID2_dropdown'); console.log("Appending cities/regencies..."); jQuery.each(data, function (_, item) { cityRegencyDropdown.append(new Option(item.city_regency_name, item.city_regency_id)); }); conso
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.