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 Profiles (Moderator: Dave Greenberg) »
  • Profile behavior when fields left empty
Pages: [1]

Author Topic: Profile behavior when fields left empty  (Read 1423 times)

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Profile behavior when fields left empty
March 23, 2009, 03:34:13 pm

I'm pretty sure this issue has been around a while. I know i've been meaning to post this for a while.

Here is a scenario that I find problematic (this happens in 2.2 and using profiles during online registration or contributions.):

You include a profile on an event registration page with basic fields like first/last name, phone, address.  Now let's say the phone field is not required.  A person comes to register anonymously and since the phone field is not required, s/he leaves it blank by mistake or something. Instead of CiviCRM just ignoring that field, it erases the phone number for that record that's already in there! Not good.

This happens regardless of the profile's "update on duplicate match" setting. And also happens with profiles used as signup forms.

Now I understand an easy work around for this is to make the field required but it shouldn't have to be.  I also know using the checksum functionality in CiviMail would help but not all people will get to the event/donate pages via CiviMail.

So my proposal is that if a field in a profile is left blank, it should make no change to the existing field in the database. It should only overwrite the data in that field if someone enters something.

What do people think about this? Am I missing some logic here?

Thanks for your time
tony
http://dharmatech.org
oss@dharmatech.org
801.541.8671

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: Profile behavior when fields left empty
March 24, 2009, 03:45:47 am
Blimey, thanks for pointing this out -

One thing though - I'm using profiles for the first time in 2.2 as a membership sign up.

The profile pulls up the existing contact data, so that the user doesn't have to fill it in again.

So why would the profile field be unintentionally blank?

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: Profile behavior when fields left empty
March 24, 2009, 06:29:10 am
Sorry for not being clear. This is for anonymous users so the profile will be blank for them.

tony
http://dharmatech.org
oss@dharmatech.org
801.541.8671

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Profile behavior when fields left empty

This forum was archived on 2017-11-26.