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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • how do i store information on my own profile?
Pages: [1] 2

Author Topic: how do i store information on my own profile?  (Read 4685 times)

jahnabi

  • Guest
how do i store information on my own profile?
May 08, 2008, 09:20:34 pm

I would post my issue here again as i think this is the correct place for support. Let me explain....
I have used civiCRM2 on drupal5.5. I have created my own new profile where i have customised the fields. I have copied the codes from standalone form and paste it in a new page. Then I have added a menu item on the navigation menu such that clicking on that item i get my own page. This page consist of only the fields that i want. Now, what i want is to fill up this form(which consist of only the fields that i created) for more than one individual and save it. 
Please give advice?

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: how do i store information on my own profile?
May 09, 2008, 01:06:17 am

you can use the url: q=civicrm/profile/create?reset=1&gid=XXX to create new individuals. It creates only one individual at a time

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

jahnabi

  • Guest
Re: how do i store information on my own profile?
May 09, 2008, 01:57:17 am


I have tried using this url. However, this url brings me up a page where all the contacts are displayed and there is only an option to view the informations.
Please give advice how to fill up the form for more than one individual and such that the form consist of only the fields that i have created.

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: how do i store information on my own profile?
May 09, 2008, 02:03:57 am

i'm not sure i understand you completely.  can you reproduce the issue on our demo server and give us the urls and what you expect to see etc

thanx

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

jahnabi

  • Guest
Re: how do i store information on my own profile?
May 09, 2008, 02:14:03 am
sure. thanks. and sorry i could'nt make you understand.

However, i would like to mention here that the following urls take me to the same page:

<site root>/civicrm/profile/create?reset=1&gid=N
<site root>/civicrm/profile/edit?reset=1&gid=N
<site root>/civicrm/profile/view?reset=1&gid=N

Please let me know why is that?
 


jahnabi

  • Guest
Re: how do i store information on my own profile?
May 09, 2008, 02:52:10 am
it works on the demo site. this is what i am looking towards.

I am working locally and on my site all the above three urls take me to the same page which is different than the ones that are displayed on the demo site.Please help.

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 do i store information on my own profile?
May 09, 2008, 03:00:17 am
What page do you  get for above profile links?

kurund
Found this reply helpful? Support CiviCRM

jahnabi

  • Guest
Re: how do i store information on my own profile?
May 09, 2008, 03:26:50 am

The above urls take me to the page that is same as in the url http://drupal.demo.civicrm.org/civicrm/profile?force=1&gid=N   
on the demo site.
However, the urls remain as i typed.
 

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 do i store information on my own profile?
May 09, 2008, 03:55:08 am
I hope you have clean urls for your drupal?

kurund
Found this reply helpful? Support CiviCRM

jahnabi

  • Guest
Re: how do i store information on my own profile?
May 09, 2008, 10:35:04 pm
hey thanks Kurund. i have not cleaned urls and hence now i replaced the above urls as
        <site root>/?q=civicrm/profile/create&reset=1&gid=N  etc. 
...and it works!!

However, in the url       <site root>index.php?q=civicrm/profile/create&reset=1&gid=N
i want people to fill up the form. When i tried to save the filled up form for more than one person
...when i click on save it works. it says "Thank you. Your information has been saved".
But when i try to view the information i.e. in the url
<site root>/index.php?q=civicrm/profile&force=1&gid=N
i dont find any information of the various people who have filled up the form except the one that i have saved for the first time.

Moreover, as i have also prepared the form in a page and have added a menu item on the navigation menu, as described in my first post. so when i go to this page i.e. in the url   <site root>?q=node/3
here if i fill up the form and click on save then what happens is that....everytime i fill up the form for different individual the form gets updated with the new set of information. this way i have been unable to store information for more than one individual.

help is highly appreciated. 

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 do i store information on my own profile?
May 10, 2008, 01:44:14 am
Quote
<site root>index.php?q=civicrm/profile/create&reset=1&gid=N

You need to use this for creating New Contact. I would suggest please read documentation on wiki for profiles.

http://wiki.civicrm.org/confluence/display/CRMDOC/Profiles

HTH

kurund
Found this reply helpful? Support CiviCRM

jahnabi

  • Guest
Re: how do i store information on my own profile?
May 10, 2008, 02:14:04 am

I have gone all through the documentation on wiki and have searched all around but am now stuck at this point.

Following the documentation, i have been able to save the form for one individual but have been unable to save it for more than one. Is it something very unusual that has occured ??? ?

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 do i store information on my own profile?
May 10, 2008, 02:56:10 am
May be you should consider hiring someone on http://civicrm.org/professional

kurund
Found this reply helpful? Support CiviCRM

jahnabi

  • Guest
Re: how do i store information on my own profile?
May 19, 2008, 10:17:06 pm
Hi Kurund,
I am sorry but i have been unable to hire one. So am back to the only resource where i can rely upon. let me explain all over once again...

I have used drupal-5.5 and civicrm2. i am working on drupal as admin.
I have created a profile whose id is 2. then i copied the codes from standalone form and pasted it in a page.
the following fields in the page are left blank:     Authored by
                                                                            Authored on
Publishing options is left to published.

Now, when i fill up the information of the form for the first person and save the form then the information gets saved. Next time i  try to fill up the information for the second person and save the info then it is the previous form that gets updated.

When i go to   http://localhost/drupal-5.5/index.php?q=civicrm/profile&force=1&gid=2
the output is like this:
  Name                             Application Name
 Individual                         abc


everytime i save the form, application name gets updated while the Name remains constant. and that takes place in the same table itself. i.e the form can store ONLY ONE contact.

Moreover, when i try to delete this contact it says: "Selected contact cannot be deleted. This contact record is linked to the currently logged in user account-'Individual'-and cannot be deleted."


I have figured one way to save more than one contacts. i.e.  by creating several accounts on drupal and then each user can save one form. But this not something that i or rather anybody would prefer.

I want to add more than one contacts by working on drupal as admin itself.

Any suggestion to resolve this issue, would be more than highly appreciated.




 
   
« Last Edit: May 19, 2008, 10:28:23 pm by jahnabi »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: how do i store information on my own profile?
May 20, 2008, 09:42:42 am
You do not need to "copy code from standalone form and paste it into a page". You can simply use the following URL when logged in as admin - and it should create a new contact record each time you submit it:

(This is with clean URL's):
http://<your_site>/civicrm/profile/create?gid=1&reset=1

You may need to reload the page in your browser after submitting  as the browser may be caching your previous inputs.

Try this on the public CiviCRM / Drupal demo to see how it should be working:
http://drupal.demo.civicrm.org/civicrm/profile/create?gid=1&reset=1

Of course - if you're just doing this as admin - you could also use the built-in "New Individual" form...
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • how do i store information on my own profile?

This forum was archived on 2017-11-26.