CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Is there a way to make asterisks red for required form fields?
Pages: [1]

Author Topic: Is there a way to make asterisks red for required form fields?  (Read 1244 times)

weroiu

  • Guest
Is there a way to make asterisks red for required form fields?
February 25, 2010, 09:40:03 pm
Is there a way to make asterisks red for required form fields?

Thanks

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Is there a way to make asterisks red for required form fields?
February 25, 2010, 11:36:47 pm
In most of the forms by default required fields are make as *. If not you can use custom template concept in CiviCRM for this. Check: http://wiki.civicrm.org/confluence/display/CRMDOC/Customizing+CiviCRM+Screens

Hth

Kurund
Found this reply helpful? Support CiviCRM

aspagarino

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 10
  • San Diego Joomla
    • California Center for Sustainable Energy
  • CiviCRM version: CiviCRM 4.3
  • CMS version: Drupal 7
Re: Is there a way to make asterisks red for required form fields?
February 26, 2010, 10:08:13 am
I believe that it easier than that.

If you look at the html code for the required asterisks you will see this:

Code: [Select]
<span class="marker" title="This field is required.">*</span>

Just open the CSS for your page, and add the color=red to the .marker class...

.marker {
color:#FF0000;
}
Andres

Open Source is Green

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Is there a way to make asterisks red for required form fields?

This forum was archived on 2017-11-26.