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

TOPIC: Highlight the Help Statement

Highlight the Help Statement 5 years 5 months ago #62940

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 5 months ago #62942

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1894
  • Thank you received: 467
  • Karma: 118
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 => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The administrator has disabled public write access.

Highlight the Help Statement 5 years 5 months ago #62962

Thank you for the advice. Cheers.
The administrator has disabled public write access.

Highlight the Help Statement 5 years 4 months ago #62965

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 4 months ago #62970

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9555
  • Thank you received: 1373
  • Karma: 389
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 development are on my free time (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
The administrator has disabled public write access.

Highlight the Help Statement 5 years 4 months ago #62972

Merci Beaucoup, and Cheers!
The administrator has disabled public write access.
Time to create page: 0.672 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form