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) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • add a "required field" snippet explaining asterisks on forms?
Pages: [1]

Author Topic: add a "required field" snippet explaining asterisks on forms?  (Read 462 times)

TwoMice

  • I post frequently
  • ***
  • Posts: 214
  • Karma: 16
    • Emphanos
  • CiviCRM version: Always current stable version
  • CMS version: Drupal 7
add a "required field" snippet explaining asterisks on forms?
April 20, 2015, 04:13:33 pm
CiviCRM forms mark required fields with an asterisk, but don't actually state what the asterisk means. Technically, an asterisk is usually meant to mean, "Please find the note on this page that tells you what this asterisk is for."

Would it be worth discussing the possibility of adding a line near the top or bottom of forms along the lines of * Required field ?

- TM
Please consider contributing to help improve CiviCRM with the Make it Happen! initiative.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: add a "required field" snippet explaining asterisks on forms?
April 20, 2015, 04:18:46 pm
That's a good suggestion.
FYI they do have a "title" property which displays a tooltip saying "This field is required"
Try asking your question on the new CiviCRM help site.

TwoMice

  • I post frequently
  • ***
  • Posts: 214
  • Karma: 16
    • Emphanos
  • CiviCRM version: Always current stable version
  • CMS version: Drupal 7
Re: add a "required field" snippet explaining asterisks on forms?
April 20, 2015, 04:34:47 pm
I never thought to hover over the asterisks; I'm not sure how many other people would either. 

Admittedly, I think most users are familiar with this convention by now, and adding an explanation would bring real benefit only to a small percentage of users.

Ideally, CiviCRM forms would be smart enough to know if they have a required, and display this blurb at the top or bottom.  But I imagine that such behavior would not be simple to develop.

- TM

Please consider contributing to help improve CiviCRM with the Make it Happen! initiative.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: add a "required field" snippet explaining asterisks on forms?
April 21, 2015, 07:51:32 am
Seems like a good case for an extension. It could just add a simple js file that does something like

Code: [Select]
CRM.$(function($) {
  $('.crm-marker').closest('form').prepend('<div>* Denotes a required field.</div>');
});
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • add a "required field" snippet explaining asterisks on forms?

This forum was archived on 2017-11-26.