Parent field is not loading automatically.

Hi,

I am facing an issue, when I create an activity (meeting or task) from Subpanel under the Contacts module, it do not load the current contact into parent module field. Look at the image attached.

Somebody please help me asap.

thanks

Hi,

Out of the box, This field auto-populates with the Contact’s Account, rather than the contact itself.

If you’d like it to fill with the Contact, it’d likely require some custom codework

1 Like

Thanks for reply John,

Can you help me about this custom code? any hint?

Hi,

I’m not too sure as I havent made any changes like this myself.

Also, due to the unique nature of the Activity Subpanel, (Being made up of Meetings/ Calls / Tasks/ Email modules), it is possible that it would require a few changes in a few places.

To Start off, it might be worth taking a look at the Quick Create files for these modules, to see if you can find anything that might point in the right direction.

(I.e, modules/Meetings/MeetingsQuickCreate.php or modules/Tasks/TasksQuickCreate.php or /modules/Calls/CallsQuickCreate.php)

Or, it might be worth taking a look at this link, which seems to be a similar requirement:
http://stackoverflow.com/questions/5807448/how-to-autopopulate-a-field-in-sugarcrm-form
(You may also need to re-purpose this for Calls / Tasks as well as meetings)

Although, I havent tested this so I would recommend doing a backup before making any changes.

Hopefully that points you in the right direction

1 Like

OK. thank you.

I am trying this.