Results 1 to 3 of 3

Thread: Add Field to Basic Search?

  1. #1
    nomi is offline Junior Member
    Join Date
    Dec 2006
    Posts
    2

    Default Add Field to Basic Search?

    I am just starting to use SugarCRM and think it's really neat and am looking forward to learning how to use it better. I have the latest open source version 4.5.0h.

    I have figured out how to make a custom field and add it to the different views of a module and to the advanced search form, but I can't figure out how to get it added to the basic search form at the top. I noticed I can put it if I replace something else there, but I can't add it to the things that are already there

    Does anyone know if there is a way to do that? Thanks!

  2. #2
    mycrmspacegunnar is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    105

    Default Re: Add Field to Basic Search?

    Quote Originally Posted by nomi
    I am just starting to use SugarCRM and think it's really neat and am looking forward to learning how to use it better. I have the latest open source version 4.5.0h.

    I have figured out how to make a custom field and add it to the different views of a module and to the advanced search form, but I can't figure out how to get it added to the basic search form at the top. I noticed I can put it if I replace something else there, but I can't add it to the things that are already there

    Does anyone know if there is a way to do that? Thanks!

    Currently, the studio editor does only allow you to add new fields to the advanced search.

    But you can manually edit the basic search form. This works quite well.
    A simple way of doing this is adding the field to the advanaces search form then having
    a look at the "searchfrom.html" template to see what line the studio editor did add to it.
    On the top of the "searchform.html" templete there is the basic search on the bottom the advanced search
    if you manually copy the line to the basic search then you have solved your problem.


    Cheers
    Gunnar
    Gunnar von Boehn
    myCRMspace

  3. #3
    nomi is offline Junior Member
    Join Date
    Dec 2006
    Posts
    2

    Default Re: Add Field to Basic Search?

    Thanks very much for the help, Gunner. I tried copying from the advanced search to the basic search in searchform.html and that didn't work. However, when I added _basic to the input name and id, it worked!

    Here is what I have finally for a checkbox called "Acorn":

    Code:
    <td class="dataLabel" noWrap><span sugar='slot3'>{MOD.Acorn__c}</span sugar='slot'>&nbsp;&nbsp;<span sugar='slot3b'><input type='hidden' name='acorn_c_basic' value='0'><input type='checkbox' name='acorn_c_basic' id='acorn_c_basic'  title='{ACORN_C_HELP}' value='1' {ACORN_C_CHECKED}></span sugar='slot'></td>
    Thanks again for the help!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2006-10-30, 01:22 PM
  2. BUG In Search/Edit Layout???
    By tj@estreet.com in forum Help
    Replies: 13
    Last Post: 2006-06-10, 05:43 AM
  3. Replies: 0
    Last Post: 2006-02-21, 04:43 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
  •