Tuesday, February 4, 2014

Type ahead feature - Text prompt

Type ahead feature - Text prompt

What is type ahead?
When you go to google and try to make a search, it prompts you for the nearest search option.
This is called type ahead.

Its now possible in Apex with a new item called "TextField with Autocomplete"

Steps:
- Create an item
- Select TextField with Autocomplet

Options:

Search: this defines how the search is performed, search for any character (contains) or match the characters exactly

Lazy Loading: Yes means the list will be read from the database every time the user types a character. No means the list will only be populated when the page is rendered

- Put in a query to get the data from a table.
 - Save

When you enter text in the textfield, you will see type ahead feature (prompting text)




No comments:

Post a Comment