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) »
  • Getting field help text to show up in HTML output with Custom Fields
Pages: [1]

Author Topic: Getting field help text to show up in HTML output with Custom Fields  (Read 909 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Getting field help text to show up in HTML output with Custom Fields
July 22, 2009, 09:24:07 pm
howdy.  anyone know how, when using CRM_Core_BAO_CustomField::addQuickFormElement to add the custom field's "help text" with the html output, so it lays below the field itself?   (i'm not talking about the label here, but the help text)

Don't see any parameter available to include help text, and it's not being included by default.  Am I looking at the wrong function?

Here's the description of this function in question:

Code: [Select]
    * This function for building custom fields
     *
     * @param object  $qf             form object (reference)
     * @param string  $elementName    name of the custom field
     * @param boolean $inactiveNeeded
     * @param boolean $userRequired   true if required else false
     * @param boolean $search         true if used for search else false
     * @param string  $label          label for custom field        
     *
     * @access public
     * @static
     */
    public static function addQuickFormElement( &$qf,
                                                $elementName,
                                                $fieldId,
                                                $inactiveNeeded = false,
                                                $useRequired = true,
                                                $search = false,
                                                $label = null )
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Getting field help text to show up in HTML output with Custom Fields
July 22, 2009, 10:32:03 pm

I think the help text is exposed to the template in most/all cases. The template decides whether or not to display it

check:

http://wiki.civicrm.org/confluence/display/CRMDOC/Add+Help+text+to+Search+profile

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Getting field help text to show up in HTML output with Custom Fields

This forum was archived on 2017-11-26.