Results 1 to 4 of 4

Thread: Autopopulating User list on record creation

  1. #1
    REByers is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    North West England
    Posts
    182

    Question Autopopulating User list on record creation

    I have a relate field that gives me a userlist drop down in the opportunities module.

    I want to autofill this field with the name of the user who creates the record, when it is created.

    I can't do this in workflow, as the field does not appear.

    How can I do this?

    Thanks, in advance, for any help.

  2. #2
    MatR is offline Sugar Community Member
    Join Date
    Jul 2007
    Location
    Paris, France
    Posts
    311

    Default Re: Autopopulating User list on record creation

    Mathieu Rodrigues
    Consultant CRM
    CARRENET - SugarCRM Gold Partner
    >>> Suivez notre actualité sur Twitter ! http://twitter.com/carrenet

  3. #3
    chinwoei's Avatar
    chinwoei is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    91

    Default Re: Autopopulating User list on record creation

    Quote Originally Posted by REByers View Post
    I have a relate field that gives me a userlist drop down in the opportunities module.

    I want to autofill this field with the name of the user who creates the record, when it is created.

    I can't do this in workflow, as the field does not appear.

    How can I do this?

    Thanks, in advance, for any help.
    hi,

    do you try to repair opportunity modules in admin?
    or turn on the developer mode and go to workflow to setup again?

    If the field does not appear, you have to code it in logic hook method as metion by MatR
    I am from iZeno Pte Ltd
    Personal Site: Technical Sharing
    SugarForge Project:
    iZeno SMS : http://www.sugarforge.org/projects/izeno-sms/

  4. #4
    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: Autopopulating User list on record creation

    You can create a custom controller at the Opportunities module and implement the method action_editview.
    Inside this method you need the check if $this->bean->id is empty. If yes, so you can setup the dropdown value accordingly.

    Kind regards
    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. email to specific address on record creation
    By alex3232 in forum Developer Help
    Replies: 2
    Last Post: 2010-05-07, 10:28 AM
  2. Replies: 0
    Last Post: 2010-04-30, 03:29 AM
  3. Disable Record Creation for a Role?
    By pwieland in forum Help
    Replies: 3
    Last Post: 2009-05-18, 09:46 PM
  4. Simple 1 to many record/table creation
    By restorick in forum Help
    Replies: 3
    Last Post: 2009-03-13, 02:09 PM
  5. MySQL Error 1062 on creation of record
    By monsta in forum Help
    Replies: 9
    Last Post: 2007-10-01, 08:50 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
  •