Hi All
I am using Sugar CRM 5.2.f Community Edition.
Web server is Apache and the OS is Linux.
PHP Version 5
MySQL -Version 5.0.45 and MySQL client version: 5.0.22.
Currently on the EditView of the Contacts Module i can add multiple email addresses for a Contact. Now only one of these email addresses can be set to the primary email address as the option for this is a radio button.
What i would like to achieve is when the form is saved, it takes the option which is set in the radio button and sets the saved value to a hidden variable which i can then access in the after save event in the logic hook and do some processing.
My problem is that the sugar bean only records the email address as email 1, email 2 etc. It does not notify me which is the Primary email address. Thus I require a method to find out the primary email address for this client and possibly place a notifier in the bean telling me this email address is a primary email address and then process this in my logic hook which is fired on the event of "after_save".
I hope i have clearly outlined my problem, and i would be very grateful if some body could nudge me in the right direction or help me.
Many Thanks.
mrhrk


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks