Auto populate note / task name with Opportunity name

When creating a note / task from a subpanel in Opportunities, is it possible to pre-populate the name of note / task with the name of the opportunity? This needs to work on mobile as well, so I can't do it in javascript (I don't think at least). If I make the name field a calculated field to be a related($opportunities, "name"), it works after the save. I need the user to be able to see it and change it if necessary. So essentially I need a way to type in the name for the user. Is this possible? I've spent a while trying a few things, nothing has been successful. 

Parents
  • Hi Ryan Horton 

    It is possible to make it work even on mobile.

    You have to:

    • create the field opp_name in Tasks and Notes
    • Configure the attribute populate_list in the field definition of tasks and notes at module Opportunities (take a look at the field contacts in the vardefs of Opportunities module)
    • Define a SugarLogic formula for calculating the name of Task and Note accordingly

    Regards

    André Lopes
    Lampada Global
    Skype: andre.lampada
  • I've taken these steps and the web works, but the mobile app does not. Does something else need to be done for this to work on mobile? 

    The field I created was parent_name. My populate list has 'name' => 'parent_name_c'. 'name' in Task / Notes has a calculation of simply $parent_name_c. This all work as expected in web.

    When on mobile a few odd things. parent_name_c isn't being populated in the edit view.

    When I added parent_name_c to the edit layout and went to deploy, I got the following message:

    Is there something I am missing?

Reply
  • I've taken these steps and the web works, but the mobile app does not. Does something else need to be done for this to work on mobile? 

    The field I created was parent_name. My populate list has 'name' => 'parent_name_c'. 'name' in Task / Notes has a calculation of simply $parent_name_c. This all work as expected in web.

    When on mobile a few odd things. parent_name_c isn't being populated in the edit view.

    When I added parent_name_c to the edit layout and went to deploy, I got the following message:

    Is there something I am missing?

Children