Welcome, Guest
Username: Password: Remember me

TOPIC: Highlight the Help Statement

Highlight the Help Statement 2 years 9 months 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.

Re: Highlight the Help Statement 2 years 9 months ago #62942

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 933
  • Thank you received: 193
  • Karma: 62
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

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
The administrator has disabled public write access.

Re: Highlight the Help Statement 2 years 9 months 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.

Re: Highlight the Help Statement 2 years 9 months 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.

Re: Highlight the Help Statement 2 years 9 months ago #62970

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 5830
  • Thank you received: 711
  • Karma: 220
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}
The administrator has disabled public write access.

Re: Highlight the Help Statement 2 years 9 months 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.168 seconds
Donation Image