Welcome to the LimeSurvey Community Forum

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

How to customize missing answer notice

  • william71
  • william71's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 1 week ago #159820 by william71
How to customize missing answer notice was created by william71
Hi,
I need to customize both the missing answer pop up and the red notice which indicates that mandatory answers are missing. Essentially, because they should sound more friendly in the context of our survey.

A grep search within all limesurvey files, that is:
Code:
grep -r -e 'muss beantwortet'
, returned:
Code:
locale/de/de.mo
locale/de-informal/de-informal.mo

Questions:
Is /local/de/de.mo the appropriate file to change the notice?
Which is the right way to edit this file, since it is a binary?

Many thanks and kind regards
Wilhelm
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 week ago - 7 years 1 week ago #159823 by Joffm
Replied by Joffm on topic How to customize missing answer notice
Hello, William,

to change the wording you have to download the *.po file (de.po) here: www.limesurvey.org/community/contribute/translations-status

This can be edited e.g. with "poedit" ( poedit.net/ )

Saving the file automatically creates the de.po and the de.m, which you upload to the locale-folder.

The look and feel of the red notice should be changeable by a bit of css
At the moment there is only:
Code:
.questionvalidcontainer .text-danger {
    font-weight: bold;
}

So either in "template.css" or directly in the question text add your desired changes, like "color:yellow", "font-style:italic", etc.

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 7 years 1 week ago by Joffm.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 week ago #159824 by tpartner
Replied by tpartner on topic How to customize missing answer notice
More about modifying the translation files here - www.limesurvey.org/manual/Translating_LimeSurvey

I would create a new translation so it won't get overwritten when updating.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • william71
  • william71's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 1 week ago - 7 years 1 week ago #159825 by william71
Replied by william71 on topic How to customize missing answer notice
Dear Joffm and tpartner,
many thanks, your answer was really helpful!
Wilhelm

(thanks!)
Last edit: 7 years 1 week ago by william71.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose