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) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • How to make Tags obligatory when adding new contact
Pages: [1]

Author Topic: How to make Tags obligatory when adding new contact  (Read 431 times)

wojtek

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
How to make Tags obligatory when adding new contact
May 12, 2011, 04:58:23 am
hi, i need to make selecting at leas one Tag obligatory when adding any new contact. would anybody know how to do this? please help. cheers, Wojtek

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: How to make Tags obligatory when adding new contact
May 12, 2011, 06:30:45 am

two options:

1. use the buildForm hook and add the required rule

http://wiki.civicrm.org/confluence/display/CRMDOC32/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmbuildForm

2. Use jQuery in the template to do the needful via javascript

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) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • How to make Tags obligatory when adding new contact

This forum was archived on 2017-11-26.