Notes on structure of config - replace the default parameters if they are different for the page.
o method: Unless you make a new method on the JSON server, keep this as query.
o populate_list: This defines the id's of the fields to be populated after a selection is made.
QuickSearch will map the first item of field_list to the first item of populate_list. ie. field_list[0] = populate_list[0], field_list[1] = populate_list[1].... until the end of populate list.
o limit: reduce from 30 if query is large hit, but never less than 12.
o conditions: options are like_custom, contains, or default of starts with
if using 'like_custom' also define 'begin'/'end' for strings to prepend and postpend to the user input
o disable: set this to true to disable SQS (optional, useful for disabling SQS on parent types in calls for example)
o post_onblur_function: this is an optional function to be called after the user has made a selection. It will be passed in an array with the items in field_list as keys and their corresponding values for the selection as values.
4. Assign your config array to sqs_objects (important!)
6. Add id tags and class name to the input box. Note that the input box must have class="sqsEnabled"!Having trouble? Take a look at the file module/Contacts/BusinessCard.php.
Copyright 2004-2008 SugarCRM Inc.
Product License