Welcome to the LimeSurvey Community Forum

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

how to submit language change on selection, without extra click [solved]

  • bebs
  • bebs's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 4 months ago - 4 years 4 months ago #190739 by bebs
To change the active language of my survey when the language is selected in the list without having to click on "change language" I edited the 'language_changer.twig' template and added 'onchange' : "this.form.submit()", to the language changer options:
Code:
{% set htmlOptions = {
            'class'          : 'form-control',
            'data-bs-targeturl' : aLCD.targetUrl,
            'onchange' : "this.form.submit()",
        }
    %}
    <!-- Language Changer -->


Just thought others might be interested.
B.
Last edit: 4 years 4 months ago by bebs. Reason: typo
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #190747 by DenisChenu
It's the case in default theme …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose