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) »
  • Edit contacts using Profile
Pages: [1]

Author Topic: Edit contacts using Profile  (Read 788 times)

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Edit contacts using Profile
March 21, 2013, 06:04:01 pm
I think this is easy - but I'm blanking at the moment.

I want to use a profile for data entry. So a user can enter a contact ID number into a form and it will bring them to profile edit page pre-populated with that users data (not the logged in user).

I thought that was as easy as appending &cid=123456 at the end, but apparently not. I just get the logged in users data. Any ideas?

https://www.example.ca/civicrm/profile/edit?gid=35&reset=1&cid=123456

Brian

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: Edit contacts using Profile
March 21, 2013, 06:21:05 pm

use: id=123456 instead of cid

note that the user needs to have permission to view/edit the 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

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Re: Edit contacts using Profile
March 22, 2013, 05:59:24 pm
Ugh, that was simple. Thanks Lobo.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Edit contacts using Profile

This forum was archived on 2017-11-26.