Solved

Autocomplete text field

Posted on 2013-11-05
2
355 Views
Last Modified: 2013-11-12
Good morning,

I am trying to add an autocomplete text field on my users profile page. This field is for adding the place where each user is from. Could you please help me to do this? I´ve been looking around and see that Taxonomy term could be a good option or entity reference. Not sure how to use them, but I need to know what would be a good approach since I have very few time to finish the whole site.

Thank you very much,

Winter
0
Comment
Question by:glepiza
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
itkadmin earned 500 total points
ID: 39627380
You are right.
Make sure taxonomy is enabled.
Make sure you have a vocabulary.

In the node type you are working with, go to Manage Fields.
Add a new field
Under field type select Term Reference
Under Widget, select Auto Complete term widget (tagging)
save
On the next screen select the vocabulary you want to use.
save the settings. There are other field settings you can set as desired.

What this will do:
When someone creates/edits the node the text field will be in the form.
As the person types, a list of autocomplete options appears.
If the term they are typing isn't in the list, nothing shows in the autocomplete and the new term will be added to the vocabulary.
0
 
LVL 2

Expert Comment

by:itkadmin
ID: 39627387
If you want to use a controlled vocabulary, do everything above but use the select list, or the radio button/check box.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since I am currently running into this issue right now as I type this, I though I would share my experiences with moving a ModX Revolution site from one server to another.  It is not an easy task, but can be accomplished rather easily. The first …
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question