Welcome to the LimeSurvey Community Forum

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

Change Register Message

  • brais24
  • brais24's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 1 month ago #214043 by brais24
Change Register Message was created by brais24
Hi People, I have Limesurvey 3.25, I make a survey with register mode and I want to change the text on spanish that appear when you access to the survey, how can I do this? I attach image

Tanks for the help
 
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 weeks ago #214105 by tpartner
Replied by tpartner on topic Change Register Message
Extend you theme and place something like this in register_message.twig:

Code:
{% if registerSuccess %}
    <p {{ aSurveyInfo.attr.registermessageb }} >{{ gT("Thank you for registering. You will receive an email shortly.") }}</p>
{% else %}
    {% if sStartDate %}
    <p {{ aSurveyInfo.attr.registermessagea }} > {{ gT("You may register for this survey but you have to wait for the {{sStartDate}} before starting the survey.") }}</p>
    {% else %}
    <p  {{ aSurveyInfo.attr.registermessageb }} >
      {% if aSurveyInfo.sLanguage == 'es' %}
       My custom Spanish text...
    {% else %}
        {{ gT("You may register for this survey if you wish to take part.") }}
    {% endif %}
  </p>
    {% endif %}
    <p  {{ aSurveyInfo.attr.registermessagec }} >
      {% if aSurveyInfo.sLanguage == 'es' %}
       Some more Spanish text...
    {% else %}
          {{ gT("Enter your details below, and an email containing the link to participate in this survey will be sent immediately.") }}
    {% endif %}
  </p>
{% endif %}
 
{% if  not empty(aSurveyInfo.aErrors) %}
    <ul class='{{ aSurveyInfo.class.maincoldivdivbul }} alert alert-danger list-unstyled' {{ aSurveyInfo.attr.maincoldivdivbul }}>
        {% for  key, error in aSurveyInfo.aErrors%}
            <li>{{ error }}</li>
        {% endfor %}
    </ul>
{% endif %}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose