Results 1 to 3 of 3

Thread: Create Contact in a popup

  1. #1
    projectsugar is offline Member
    Join Date
    Jan 2009
    Posts
    7

    Default Create Contact in a popup

    I modified sugar to add a Create Contact button that when clicked opens a popup with the Create Contact page. When I click on the "Save" button, I want the Contact information to be saved and the popup to close automatically after that. I haven't figured out a way to have the Save button do this. What happens is that the Save button redirects the popup to index.php (same as it does when saving Contact on a regular browser page) and I haven't been able to figure out a way to make the Save work differently in a popup.
    I tried intercepting the submit event to do a window.close() but the submit event seems to be called via the generic save form method and I don't want to touch that. Any ideas? Thanks for reading this post.
    I am using Sugar CE 5.2.0a

  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: Create Contact in a popup

    From which page are you calling this popup?
    What is the real needs on this?

    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
    projectsugar is offline Member
    Join Date
    Jan 2009
    Posts
    7

    Default Re: Create Contact in a popup

    I have a "Create Contact" button in the Account Detail view. When the "Create Contact" is clicked, it opens a popup with the Contact EditView (Create Contact) fields and I pass the account id. This account id gets set in the Account field of the Create Contact screen.
    The point of this is to allow users to add a Contact associated with an Account easily. Also making it a popup instead of directing to the Create Contact page under the tab allows the user to add Contacts quickly for a specified Account without having to navigate back and forth.
    Thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Information about how to create new popup
    By bhawin13 in forum Developer Help
    Replies: 11
    Last Post: 2011-03-11, 06:09 AM
  2. Replies: 5
    Last Post: 2007-04-26, 07:43 PM
  3. How to create another popup
    By bhawin13 in forum Developer Help
    Replies: 1
    Last Post: 2007-03-23, 06:45 AM
  4. Create Popup
    By Tavares in forum Developer Help
    Replies: 1
    Last Post: 2007-02-23, 09:04 PM
  5. Create in Contacts Popup
    By webnetin in forum Help
    Replies: 0
    Last Post: 2006-03-10, 05:52 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
  •