Results 1 to 3 of 3

Thread: Custom field: Creating Select button

  1. #1
    gladiorlic is offline Sugar Community Member
    Join Date
    Nov 2006
    Posts
    12

    Default Custom field: Creating Select button

    HI,

    IN the EditView of (for ex) Accounts, there is a text filed with a Select button.
    I would like to make my own text field with a select botton. The select button should give a popup with all the employee's.

    Each account has a Assigned User, we need a Campaign manager aswell. So i need this field twice, but with different names.

    Can someone point me into the good direction?

  2. #2
    enrikm is offline Sugar Community Member
    Join Date
    Dec 2006
    Posts
    61

    Default Re: Custom field: Creating Select button

    Hi,

    Go into the modules/Accounts/EditView.html. This is the code for having a select button:

    <input title="{APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{APP.LBL_SELECT_BUTTON_KEY}" type="button" tabindex='1' class="button" value='{APP.LBL_SELECT_BUTTON_LABEL}' name=btn1 onclick='open_popup("Users", 600, 400, "&is_group=0", true, false, {encoded_users_popup_request_data});' />

    You probably have to edit ['open_popup('MODULE_NAME"].

    Haven't tried this myself, but seems like the way to go,

    Hopefully I can help!

  3. #3
    Systems Navigator is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    195

    Smile Re: Custom field: Creating Select button

    Quote Originally Posted by enrikm
    Hi,

    Go into the modules/Accounts/EditView.html. This is the code for having a select button:

    <input title="{APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{APP.LBL_SELECT_BUTTON_KEY}" type="button" tabindex='1' class="button" value='{APP.LBL_SELECT_BUTTON_LABEL}' name=btn1 onclick='open_popup("Users", 600, 400, "&is_group=0", true, false, {encoded_users_popup_request_data});' />

    You probably have to edit ['open_popup('MODULE_NAME"].

    Haven't tried this myself, but seems like the way to go,

    Hopefully I can help!
    I tried this, but you said that I have to edit ['open_popup('MODULE_NAME"]. Where do I have to edit this?

    Thanks for your help

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. problem step 7 version SugarOS-4.5.0f
    By lucia in forum Help
    Replies: 1
    Last Post: 2006-12-27, 01:21 PM
  2. problemi step 6 di SugarSuite-Full-4.0.1h
    By lucia in forum Italiano
    Replies: 0
    Last Post: 2006-12-27, 08:50 AM
  3. Replies: 1
    Last Post: 2006-10-12, 12:07 AM
  4. 4.0.1 Installation Problem
    By clawton in forum Help
    Replies: 14
    Last Post: 2006-02-13, 04:17 PM
  5. Fatal error: Max
    By spokes2k4 in forum Help
    Replies: 3
    Last Post: 2006-01-15, 03:50 PM

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
  •