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

  • Home
  • SEARCH
  • 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 934855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:03:59+00:00 2026-05-15T21:03:59+00:00

I am building an idea capture website from the Array Shift installation profile of

  • 0

I am building an idea capture website from the Array Shift installation profile of drupal and I’m trying to create a similar entry lookup for when a user starts to create a new idea. Is there a way I can detect when the user is typing text into the title field of the create new idea form (a new content type I created in cck) and then, using ajax, create a dynamic dropdown list of all other posted ideas that are similar based on custom sql queries I create? I’ve seen this done in many 3rd party COTS tools for idea capture, not to mention right here in Stackoverflow, and I’m hoping to do the same in drupal. Right now, the only ways I can think of to do this is to hack the cck module, which I know is not a good idea, or to somehow hook into that form somehow. I’m not sure how to do that. Do I use hook_form_alter()? I’m using drupal 6.16 and CCK 6.x-2.7. Thanks.

  • 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-05-15T21:04:00+00:00Added an answer on May 15, 2026 at 9:04 pm

    I solved my own problem. Here’s what I did:

    • set up a drupal.behavior of onchange for the title textfield
    • made an ajax call inside that onchange handler
    • connected the ajax call to a path that corresponds to a callback function I created in a custom module
    • Critical: I had to disable and then re-enable that custom module in order for the callback function to ever be called (the one defined in a hook_menu())
    • made a sql query in the callback function that looked for similar ideas in the db
    • made the results print out in a markup element I placed just below the title textfield. I wrapped the results in tags that link to their respective idea pages.

    And voila, it works like a charm now! I had to piece together about 10 tutorials to figure this out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

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.