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) »
  • Make activity fields required?
Pages: [1]

Author Topic: Make activity fields required?  (Read 514 times)

Tiffani Chin

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.30
  • PHP version: 5.3.17
Make activity fields required?
May 01, 2012, 02:05:26 pm
Does anyone know a good way to make activity fields (specifically "status" and "details") required?

I've looked through the UI and through the code to see if there's a simple setting I can change but I don't see one.  Am I missing it?

Or, does anyone have any code suggestions?  I'm not a developer but I'm getting better at applying small fixes here and there.

Thank you!

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Make activity fields required?
May 01, 2012, 08:24:47 pm
You could try the buildForm hook, just not sure off the top of my head how easy it would be. Maybe $form->addRule()?

If you're ok with client-side validation and popping up a javascript box you could insert some jquery into the template, either through buildForm or with this technique http://civicrm.org/blogs/dave-greenberg/now-its-easier-add-custom-behaviors-templates

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Make activity fields required?

This forum was archived on 2017-11-26.