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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Setting a default for Communcations Preferences Method
Pages: [1]

Author Topic: Setting a default for Communcations Preferences Method  (Read 1021 times)

dougall

  • Guest
Setting a default for Communcations Preferences Method
June 27, 2008, 03:27:51 am
Hi all,

I want to set the Communication Preference Method to "Email" as default for new contacts.

Presumably I can do this by simply updating the sql schema so the default for civicrm_contact.preferred_communication_method is set as I desire.

However I would prefer to do this without directly altering the database since our CiviCRM users are not going to be happy about doing this if they wish to change this default in the future.

So is there any other way to setup such a default?

Thanks,
   Dougall

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Setting a default for Communcations Preferences Method
June 27, 2008, 09:51:37 am
You might be able to do this by adding a javascript function to a custom copy of the relevant template file (templates/CRM/Contact/Form/CommPrefs.tpl) which checks of any of the checkboxes in that set are checked - and if not sets checked to true...

Otherwise I think you'll need to hack the underlying php file - setDefaults() function. (In 2.1 you'll be able to have a custom copies of any php file which should help a bit w/ upgrades, etc.).
Protect your investment in CiviCRM by  becoming a Member!

dougall

  • Guest
Re: Setting a default for Communcations Preferences Method
July 01, 2008, 06:39:02 am
Thanks,
I'll give it a go.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Setting a default for Communcations Preferences Method

This forum was archived on 2017-11-26.