Results 1 to 8 of 8
Like Tree1Likes
  • 1 Post By priyanka22

Thread: Add auto suggestion on textfield in advance search

  1. #1
    priyanka22 Guest

    Default Add auto suggestion on textfield in advance search

    Hi,

    How to add auto suggestion on textfield and that text field put in advance search?

  2. #2
    ashokinsugar is offline Sugar Community Member
    Join Date
    Apr 2011
    Location
    INDIA
    Posts
    198

    Default Re: Add auto suggestion on textfield in advance search

    Hi Priyanka22,

    You can use jquery libray which is available for autocomplete or just use an ajax to accomplish.


    Regards,
    Ashok

  3. #3
    asavaliya is offline Sugar Community Member
    Join Date
    Nov 2010
    Posts
    101

    Default Re: Add auto suggestion on textfield in advance search

    Hi...Priyanka
    Please check code in "modules/Employees/views/view.edit.php"

    PHP Code:
    $json getJSONobj();
                require_once(
    'include/QuickSearchDefaults.php');
                
    $qsd = new QuickSearchDefaults();
                
    $sqs_objects = array('EditView_reports_to_name' => $qsd->getQSUser());
                
    $sqs_objects['EditView_reports_to_name']['populate_list'] = array('reports_to_name''reports_to_id');
                
    $quicksearch_js '<script type="text/javascript" language="javascript">sqs_objects = ' $json->encode($sqs_objects) . '; enableQS();</script>';

                
    $this->ss->assign('REPORTS_TO_JS'$quicksearch_js);
                
    $this->ss->assign('EDIT_REPORTS_TO'true); 

  4. #4
    priyanka22 Guest

    Default Re: Add auto suggestion on textfield in advance search

    Hi,

    Thanks for your reply...but in advance search how to i add custom code??

  5. #5
    bhavik007 Guest

    Default Re: Add auto suggestion on textfield in advance search

    Please follow path:- include/SearchForm/tpls/SearchFormGenericAdvanced.tpl
    You can add any field and value in this .tpl file then you can see in advance search

  6. #6
    priyanka22 Guest

    Default Re: Add auto suggestion on textfield in advance search

    Hi Bhavik,

    I just add text field in this tpl file & its work..Thanks a lot..
    bhavik007 likes this.

  7. #7
    asavaliya is offline Sugar Community Member
    Join Date
    Nov 2010
    Posts
    101

    Default Re: Add auto suggestion on textfield in advance search

    Hi..
    You can put it in view.list.php for particular module.You need to each that javascript.It will have effect for advance search.

  8. #8
    priyanka22 Guest

    Default Re: Add auto suggestion on textfield in advance search

    Quote Originally Posted by asavaliya View Post
    Hi..
    You can put it in view.list.php for particular module.You need to each that javascript.It will have effect for advance search.
    Thanks asavaliya. I was use view.list.php for include javascript file & its work.
    I have another query.. How to add custom sql query for advance search.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Advance Search in Accounts using Zip
    By dougrkyle in forum Help
    Replies: 0
    Last Post: 2011-07-12, 01:49 PM
  2. Advance Search TextArea
    By kurt.maderal in forum Help
    Replies: 0
    Last Post: 2010-05-11, 02:25 PM
  3. Close Teb Search(Basic Search/Advance Search)
    By waree in forum Developer Help
    Replies: 1
    Last Post: 2008-12-27, 04:14 PM
  4. Basic / Advance Search
    By sallylau in forum Help
    Replies: 0
    Last Post: 2008-05-30, 08:57 PM
  5. Advance search problem
    By Patel in forum Developer Help
    Replies: 1
    Last Post: 2006-05-31, 07:55 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
  •