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) »
  • Can't update contact information using from a profile
Pages: [1]

Author Topic: Can't update contact information using from a profile  (Read 3919 times)

martasd

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2.4
  • CMS version: Drupal 6.28
  • MySQL version: 5.1
  • PHP version: 5.3.2t
Can't update contact information using from a profile
March 08, 2013, 03:08:14 pm
Hi.

I have created a profile in Civicrm with ten contact fields (five of which are custom). When I hit 'Use (create mode)', proceed to fill out and submit the form, the entered information does get saved, but it doesn't get associated with the contact which is logged in. Instead, a new contact with a new id is created in the database. Does anyone have ideas about how to associate the entered information with the currently logged on contact instead of creating a new one every time?

Thanks,
Martin

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Can't update contact information using from a profile
March 08, 2013, 03:54:31 pm
create mode means exactly that - use this profile to create a contact
if you change the url and replace 'create' with 'edit' you might get what you want
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Can't update contact information using from a profile
March 08, 2013, 03:55:15 pm
the big clue will be that if data exists for that logged in user, then the data will show in the fields in the profile when you load the 'edit' version

hope that helps
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

FunnyBird

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal
  • MySQL version: 5.6
  • PHP version: 5.4
Re: Can't update contact information using from a profile
March 26, 2013, 05:32:24 am
ok so far..how can I change the information that is already submitted in the contact fields?Is there any way to change ore cancel them?

thanks!
Intelligence without ambition is a bird without wings.
Salvador Dali

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Can't update contact information using from a profile
March 26, 2013, 12:14:16 pm
hi

not clear, pls paste an example url or better a url to one on demo so i can follow you.

are you in create or edit mode

what type of fields you talking about

some behave differently - like 'address fields' if they are using a 'shared address' (they will be read only)
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

martasd

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2.4
  • CMS version: Drupal 6.28
  • MySQL version: 5.1
  • PHP version: 5.3.2t
Re: Can't update contact information using from a profile
March 29, 2013, 10:07:38 am
Quote from: petednz on March 08, 2013, 03:54:31 pm
create mode means exactly that - use this profile to create a contact
if you change the url and replace 'create' with 'edit' you might get what you want

Thanks, that mostly helped, but I still have one outstanding issue. I have 5 fields in the profile which are of type contact-email. I can change the value of these fields to a different string when in edit mode, but I cannot delete the value for some reason. When I try deleting the value of the field when editing the contact details directly, it works fine. Why can't I delete the value of the email field in the profile?

Thanks,
Martin

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Can't update contact information using from a profile
March 31, 2013, 04:43:15 pm
I presume because the Profile code is set so that an empty field does not override existing data - dgg might be able to add more about this behaviour.

but clearly if you are asking people to fill in forms, and don't require all the fields, you don't want to find that because they left them blank you then lost your existing data.

i suspect it could require a significant bit of work to make it so that fields exposed in profiles could be set, per profile, to allow a 'clear' option, so that if existing data is exposed, and you want the profile user to be able to delete it, they can
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

martasd

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2.4
  • CMS version: Drupal 6.28
  • MySQL version: 5.1
  • PHP version: 5.3.2t
Re: Can't update contact information using from a profile
April 01, 2013, 04:55:49 pm
What I want is for users to be able to return to the form which will show them data they entered previously and give them the option to edit data which includes deleting them. It sounds like 'clear' button is what I need in my profile.

I am now trying to implement the same functionality with a webform module. We will see if I can use that instead.

spalmstr

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 2
  • CiviCRM version: 4.5.4
  • CMS version: Joomla! 3.3.6 Stable [ Ember ] 01-October-2014 02:00 GMT
  • MySQL version: 5.6.21
  • PHP version: 5.6.0
Re: Can't update contact information using from a profile
July 10, 2013, 09:41:34 am
I've noticed this issue, too.  There is an x to the right of the field that clears it when clicked, but when you save the profile, the original data reappear.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Can't update contact information using from a profile

This forum was archived on 2017-11-26.