public function autoSuggest($input)
    {
        if (defined('OPENBIZ_JSLIB_BASE') && OPENBIZ_JSLIB_BASE == 'JQUERY') {
            $value = $_GET["term"];
            // get the select from list of the element
            $element = $this->getElement($input);
            $element->setValue($value);
            $fromlist = array();
            $element->getFromList($fromlist);
            $arr = array();
            $i = 0;
            foreach ($fromlist as $item) {
                $arr[$i++] = array('label' => $item['txt'], 'value' => $item['val']);
            }
            echo json_encode($arr);
            return;
        }
        $foo = $_POST;
        $hidden_flag = FALSE;
        if (strpos($input, '_hidden')) {
            $realInput = str_replace('_hidden', '', $input);
            $hidden_flag = TRUE;
        } else {
            $realInput = $input;
        }

        $value = Openbizx::$app->getClientProxy()->getFormInputs($input);

        // get the select from list of the element
        $element = $this->getElement($realInput);
        $element->setValue($value);
        $fromlist = array();
        $element->getFromList($fromlist);
        echo "<ul>";
        if ($fromlist) {
            if ($hidden_flag = TRUE) {
                $count = 0;
                foreach ($fromlist as $item) {
                    echo "<li id=" . $item['txt'] . ">" . $item['val'] . "</li>";
                    $count++;
                    if ($count >= 5)
                        break;
                }
            }
            else {
                $count = 0;
                foreach ($fromlist as $item) {
                    echo "<li>" . $item['txt'] . "</li>";
                    $count++;
                    if ($count >= 5)
                        break;
                }
            }
        }
        echo "</ul>";
    }