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

Ask A Question

Stats

  • Questions 506k
  • Answers 506k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer var tree = {} function addToTree(tree, array) { for (var… May 16, 2026 at 3:40 pm
  • Editorial Team
    Editorial Team added an answer rake gems:install does what you would expect. It calls out… May 16, 2026 at 3:40 pm
  • Editorial Team
    Editorial Team added an answer Everything you stated. Everything Darin stated. Plus... Void is a… May 16, 2026 at 3:40 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a web application that I am building using IDEA. There are some
I'm researching the idea of building a super-small (preferably PHP) web app, which will
I have a idea of building sort of a simple online version of Microsoft
I've been toying with the idea of building a web-based Roguelike game using Silverlight
From what I can tell from the docs, semantic works by slowly building up
I'm thinking of building a small web app using the MVC framework as a
So I'm building an application that is going to do a ton of code
Im building my own forum where you can use diffrent types of BBcode and
I am building an e store and concerned about security of transactions. Does any
I'm thinking about building an application with a RESTful web service. My thought is

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.