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) »
  • set "uses household address" as default
Pages: [1]

Author Topic: set "uses household address" as default  (Read 1172 times)

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
set "uses household address" as default
November 24, 2008, 04:46:18 am
Hi there,

I want set uses household address to be the default option for new contacts.  I've added

Code: [Select]
$defaults['use_household_address']=1;
to CRM_Contact_Form_Edit::setDefaultValues() and the checkbox is showing up ticked, but the Select Household autocomplete Dojo box isn't showing up on initial page load.  It does show up after you have clicked it off and on again.  Any ideas?  (I did try and work this one out myself but the Javascript on that page is a little complex for me).

Michael
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: set "uses household address" as default
November 25, 2008, 01:57:32 am
Michael:

There might a javascript function(s) called on "onclick" event of "checkbox", so in your case since you are checking it onload. You need to call those function onload.

HTH

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • set "uses household address" as default

This forum was archived on 2017-11-26.