Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Highlight the Help Statement

Highlight the Help Statement 5 years 3 weeks ago #62940

  • tshibata
  • tshibata's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
How to highlight the help statement with colors when the response was the FALSE to the validation code?
The administrator has disabled public write access.

Highlight the Help Statement 5 years 3 weeks ago #62942

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1797
  • Thank you received: 439
  • Karma: 110
in the template.css, search and edit the following CSS classes:
.error
.errormandatory
.warningjs

For example for the (1.91) default template it's (+/- line 280):
.error,.errormandatory,.warningjs {
  color: red;
}
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.

Highlight the Help Statement 5 years 3 weeks ago #62962

  • tshibata
  • tshibata's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Thank you for the advice. Cheers.
The administrator has disabled public write access.

Highlight the Help Statement 5 years 3 weeks ago #62965

  • tshibata
  • tshibata's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Another question regarding the subject. Is there an easy way to hide the entire
HELP statement unless the validation turns out to be FALSE? In other words, the warning(help) statement only appears in red when validation fails. Your advice is very much appreciated.
The administrator has disabled public write access.

Highlight the Help Statement 5 years 3 weeks ago #62970

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 9286
  • Thank you received: 1324
  • Karma: 384
Hello,

Trye something like that (if your {HELP} was in a div class="survey-question-help" )
.survey-question-help{display:none}
.input-error .survey-question-help{display:block}
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Highlight the Help Statement 5 years 3 weeks ago #62972

  • tshibata
  • tshibata's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Merci Beaucoup, and Cheers!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.416 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form