Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: How to add text box field in "create new user"

  1. #1
    sivanesan is offline Senior Member
    Join Date
    Jul 2009
    Posts
    32

    Default How to add text box field in "create new user"

    Hi all please help me,

    How to add text box field in "create new user" form and there by selected color should be inserted into users table and need to be update the inserted color in edit user form.

    With Regards
    Siva

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: How to add text box field in "create new user"

    Hi Siva

    Please clarify your request in details.
    It is foggy!

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    sivanesan is offline Senior Member
    Join Date
    Jul 2009
    Posts
    32

    Default Re: How to add text box field in "create new user"

    Hi,

    Now I added one text box in "create new user form". I need to stored that text box value in "User" table and also updte. How can do that please help me...

    with regards,
    V.Siva

  4. #4
    sivanesan is offline Senior Member
    Join Date
    Jul 2009
    Posts
    32

    Default Re: How to add text box field in "create new user"

    Hi all,

    Please help me.....

    advance thanks for usrs help...

    thanks & Regards
    Siva

  5. #5
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: How to add text box field in "create new user"

    1. Create an empty file modules/Users/metadata/studio.php;
    2. Go to Admin -> Studio -> Users -> Fields -> and add the field you want (it will be created as a custom field);
    3. Copy the files DetailView.html, DetailView.php, EditView.html, EditView.php from modules/Users/ to custom/modules/Users/
    4. Edit the files EditView.php and DetailView.php from custom/modules/Users/ to update the path of html files (now they need to be pointed to custom/modules/Users/ folder);
    5. Edit the files DetailView.html and EditView.html to add by hand the new field you just added through Studio.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  6. #6
    sivanesan is offline Senior Member
    Join Date
    Jul 2009
    Posts
    32

    Default Re: How to add text box field in "create new user"

    Hi,
    thanks for ur reply.....

    I did that but i got this type of error when i click "create new user"

    Fatal error: Call to a member function assign() on a non-object in C:\xampp\htdocs\sugarniki\trunk\modules\DynamicFie lds\DynamicField.php on line 746

    Thanks & Regards
    Siva

  7. #7
    sivanesan is offline Senior Member
    Join Date
    Jul 2009
    Posts
    32

    Default Re: How to add text box field in "create new user"

    Hi,

    please help..........me..........

    Thanks & Regards
    Siva

  8. #8
    geraldclark is offline Sugar Community Member
    Join Date
    Nov 2008
    Posts
    22

    Default Re: How to add text box field in "create new user"

    I get that error as well. Any advice?

  9. #9
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: How to add text box field in "create new user"

    Open the script modules/Users/EditView.php
    Look for "Add Custom Fields"
    Add the following lines just after:


    PHP Code:
    // ANDOPES BEGIN: 2010-02-01 23:18:00: FIX FOR BUG #33657
    $xtpl $sugar_smarty;
    // ANDOPES END: 2010-02-01 23:18:00: FIX FOR BUG #33657 
    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  10. #10
    mangesh1757 is offline Sugar Community Member
    Join Date
    Jan 2010
    Location
    India
    Posts
    226

    Default Re: How to add text box field in "create new user"

    Hi All,

    Can anyone elaborate the procedure....i did tried but was not able to work it out.

    I have attached files EditView.php, DetailView.php, EditView.html and DetailView.html. (All the files are at <root>\custom\modules\Users )

    and have created field category_c and drop down list user_category_list through studio

    I was able to get fields at edit view but doesn't save value at detail view.....i did check the database and if i manually populate through data base it works fine.....also i tired using logic hook to update database users_cstm table but not able to acces my custom fields.............

    Please guide me.

    Thanks.
    Attached Files Attached Files
    Last edited by mangesh1757; 2010-06-22 at 06:13 AM.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 2009-01-19, 08:32 PM
  2. Replies: 0
    Last Post: 2007-07-27, 01:47 PM
  3. Replies: 0
    Last Post: 2006-09-12, 12:25 PM
  4. Replies: 0
    Last Post: 2005-05-06, 06:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •