Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Autocomplete

More
4 years 5 months ago #228200 by brais24
Autocomplete was created by brais24
Please help us help you and fill where relevant:
Your LimeSurvey version: [3.25]
Own server or LimeSurvey hosting: Own
Survey theme/template: Fruity
==================
Hi there people, my question today is if its possible to do a different autocompletes on multiple choice questions, i use to use this code, but with this, put me the same autocomplete on all rows, it is possible to do this autocomplete but using the answerid instead of the question code or something else?

Thank you.

<u><strong>Indíqueme en qué municipio</strong></u>
<link href=" cdnjs.cloudflare.com/ajax/libs/jqueryui/....1/jquery-ui.min.css " rel="stylesheet" type="text/css" /> <script type="text/javascript" src=" cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js "></script> <script type="text/javascript" charset="utf-8">
    $(document).ready(function() {
        $('#question{1706} input[type="text"]').autocomplete({
            minLength: 2,
            source: ["A Coruña","Álava","Albacete","Alicante","Almería","Asturias","Ávila","Badajoz","Baleares","Barcelona","Burgos","Cáceres","Cádiz","Cantabria","Castellón","Ciudad Real","Córdoba","Cuenca","Girona","Granada","Guadalajara","Gipuzkoa","Huelva","Huesca","Jaén","La Rioja","Las Palmas","León","Lérida","Lugo","Madrid","Málaga","Murcia","Navarra","Ourense","Palencia","Pontevedra","Salamanca","Segovia","Sevilla","Soria","Tarragona","Santa Cruz de Tenerife","Teruel","Toledo","Valencia","Valladolid","Vizcaya","Zamora","Zaragoza","Ceuta","Melilla","A Corunya",       "Alacant","Almeria","Astúries","Balears","Càceres","Cantàbria","Castelló","Ciutat Real","Lleida","Pontevedra","Santa Creu de Tenerife","València","Biscaia","Balearic Islands"]
        });
    });
</script>

Please Log in to join the conversation.

More
4 years 5 months ago #228201 by brais24
Replied by brais24 on topic Autocomplete
the question is a multiple choice question that have SQ001 and SQ002 as row code.

Please Log in to join the conversation.

More
4 years 5 months ago #228202 by brais24
Replied by brais24 on topic Autocomplete
This is my code

<u><strong>Indíqueme en qué municipio</strong></u>
<link href=" cdnjs.cloudflare.com/ajax/libs/jqueryui/....1/jquery-ui.min.css " rel="stylesheet" type="text/css" /> <script type="text/javascript" src=" cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js "></script> <script type="text/javascript" charset="utf-8">
    $(document).ready(function() {
        $('#question{1706} input[type="text"]').autocomplete({
            minLength: 2,
            source: ["A Coruña","Álava","Albacete","Alicante","Almería","Asturias","Ávila","Badajoz","Baleares","Barcelona","Burgos","Cáceres","Cádiz","Cantabria","Castellón","Ciudad Real","Córdoba","Cuenca","Girona","Granada","Guadalajara","Gipuzkoa","Huelva","Huesca","Jaén","La Rioja","Las Palmas","León","Lérida","Lugo","Madrid","Málaga","Murcia","Navarra","Ourense","Palencia","Pontevedra","Salamanca","Segovia","Sevilla","Soria","Tarragona","Santa Cruz de Tenerife","Teruel","Toledo","Valencia","Valladolid","Vizcaya","Zamora","Zaragoza","Ceuta","Melilla","A Corunya",       "Alacant","Almeria","Astúries","Balears","Càceres","Cantàbria","Castelló","Ciutat Real","Lleida","Santa Creu de Tenerife","València","Biscaia","Balearic Islands"]
        });
    });
</script>

Please Log in to join the conversation.

More
4 years 5 months ago #228203 by brais24
Replied by brais24 on topic Autocomplete

Rendering Error in layout Message/Item: Class "Nbbc\BBCodeException" not found. Please enable debug mode for more information.

Please Log in to join the conversation.

Moderators: tpartner, holch

Lime-years ahead

Online-surveys for every purse and purpose