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 (Moderator: Dave Greenberg) »
  • How to make address and postcode mandatory
Pages: [1]

Author Topic: How to make address and postcode mandatory  (Read 658 times)

dflorence

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: joomla 2.5 and testing 3.2.1
  • MySQL version: 5.1.69
  • PHP version: 5.3.3
How to make address and postcode mandatory
May 10, 2013, 02:58:01 pm
When we add a new contact, we want to make it compulsory to fill in at least one type of address (presumably the "main" address)

I can't quite see how to go about making address fields compulsory - Can anyone advise the best way to go about this please?

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: How to make address and postcode mandatory
May 10, 2013, 03:45:19 pm
How are you creating new contact? Are you using profile or main contact create form?

Kurund
Found this reply helpful? Support CiviCRM

dflorence

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: joomla 2.5 and testing 3.2.1
  • MySQL version: 5.1.69
  • PHP version: 5.3.3
Re: How to make address and postcode mandatory
May 12, 2013, 05:56:45 am
We are using the main create contact form - staff select "new Individual" or "New Contact" from the Contacts list - And its a Jooma site - not drupal...

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
Re: How to make address and postcode mandatory
May 13, 2013, 10:16:40 am
I think you've found a part of CiviCRM with some missing functionality: out of the box, there is no way to configure core fields in the standard forms via the UI - you can't disable them, move them around, or make them required, etc.

A couple of work arounds for the time being:

* You could create a profile and use that for creating new individuals / organisations and make the fields required in the profile
* You could use a hook to enforce this (would require some coding) in the create new contact forms.

Longer term (depending on your budget / interest in getting involved) you could help out fixing it the proper way :)
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • How to make address and postcode mandatory

This forum was archived on 2017-11-26.