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) »
  • Update contact data though profiles not working
Pages: [1]

Author Topic: Update contact data though profiles not working  (Read 953 times)

epelican

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
Update contact data though profiles not working
January 23, 2011, 05:55:36 am
What I need :

=> My users should update part of their contact custom fields

What is wrong :
=> Form (civicrm/profile/create?reset=1&gid=N) and HTML snippet seem to work (success message) but records are not modified

How to check my non working sample :

- goto to drupal.demo.civicrm.org
- I have tried today to set a profile names "toto" ID = 10 on CIVI demo site
- I have set "Job Title" field to be modified
=> /civicrm/admin/uf/group?reset=1&action=browse

- I go to the update page and save
=> /civicrm/profile/create?reset=1&gid=10

- I got to contact record and nothing has been modified ...

PLEASE CAN YOU TELL ME WHAT IS WRONG ?

Regards,
Fabrice

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Update contact data though profiles not working
January 23, 2011, 06:52:22 am

Use:

/civicrm/profile/edit?reset=1&gid=10

This will edit the current users record.

U can also send in another contact id if the person has "edit" permissions on that contact

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

epelican

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
Re: Update contact data though profiles not working
January 23, 2011, 07:23:06 am
Thank you, it works !

Anyway I have applied your URL to my local CIVICRM using exactly the same profile :
/civicrm/profile/edit?reset=1&gid=39

But it shows a listing instead of a form : "Edit Search Criteria", folowed by user list

Could you tell me what is the difference between demo CIVI and my local CIVI ?

Fabrice

epelican

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
Re: Update contact data though profiles not working
January 23, 2011, 12:41:09 pm
grrrr... ok, I found it ...

/index.php?q=/civicrm/profile/edit&reset=1&gid=39

instead of

/index.php?q=/civicrm/profile/edit?reset=1&gid=39

:-)

epelican

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
Re: Update contact data though profiles not working
January 23, 2011, 01:19:41 pm
Anyway, something not working indeed
=> everything works fine for individual fields (name, birthday) but no custom data field appear in the form (card number, size, ect).

Any idea ?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Update contact data though profiles not working

This forum was archived on 2017-11-26.