Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8743399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:40:10+00:00 2026-06-13T11:40:10+00:00

Using Yii PHP framework . When you ask a question on stackoverflow, as you

  • 0

Using Yii PHP framework. When you ask a question on stackoverflow, as you type the title a list appears called “Questions that may already have your answer”. I want to create similar type of field so that when users enter the name of a business I can display similar business names already in my system. It doesn’t necessarily need to be as sophisticated as stackoverflow’s model. A simple alphabetical search should be fine.

Keep in mind unlike a normal autocomplete, this “autocomplete” won’t actually fill in the field in question but rather serves as an informational tool to inform the user of data that potentially already exists.

I’m thinking Yii CJuiAutoComplete widget is the right tool for the job but how do I dissociate the autocomplete from the input field?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T11:40:11+00:00Added an answer on June 13, 2026 at 11:40 am

    CJuiAutoComplete is definitely the right tool, and to disable the auto filling when selecting the suggested values, you will have to alter jQueryUI autocomplete’s behavior for its select event, and also for its focus event.

    The select event is triggered when a suggestion item is clicked, and focus event is triggered when a suggestion item is navigated to by keystroke (up, down arrow keys).

    So to change the default behavior, which is updating the text field, you can cancel those events by returning false from their callbacks:

    $this->widget('zii.widgets.jui.CJuiAutoComplete', array(
        // other options
        // additional javascript options for the autocomplete plugin
        'options'=>array(
            'select'=>'js:function( event, ui ) {
                return false;
            }',
            'focus'=>'js:function(event, ui) {
                return false;
            }'
        ),
    ));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Yii 1.1.12 php framework although that may not be relevant. When logged in
We've been developing a web application (PHP, using the Yii PHP framework) that is
I'm using the Yii PHP framework which has a function PDO::lastInsertId that's apparently just
First of all, let me just say that I'm using the PHP framework Yii,
I am using mysql with php Yii framework.When doing data modelling I came accross
I'm new using Yii framework. I show a list a checkbox. But it's not
Using the Yii PHP framework with Mercurial as version control. Which files and directories
I'm a newbie using a book to learn the Yii php framework. It has
I'm creating a hybrid PHP/Node.js application. For PHP, I'm using the Yii framework. Within
I am using the Yii framework for a site that will get a lot

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.