# Behavior

The type of expansion to use for terms. You can use one of the following values:

- Trailing. Expand the text from the end of the word or phrase that the user provides. In this case, QMS uses a trailing wildcard (`term*`) to return only expansion options that start with the value that the user types. For example, this option might expand th to theater, and not to with.

  This option can return phrases as well as terms, when available. For example, the input text great might return greater, or Great Britain. When the input text ends with a space, QMS treats it as a whole word and returns only phrases.

  NOTE: In Index Mode, this option uses the IDOL Content component `Autocomplete` term expansion, which returns phrases from the phrase index (if enabled), as well as terms. For multiple word input text, it attempts to find phrases that use the whole input text. If it cannot find any (for example, if the phrase index is disabled, or there are no matching phrases), it expands from the last term in the input text.

- Substring. Expand the text so that the user text forms any substring of the possible expansions. In this case, QMS uses a leading and a trailing wildcard (`*term*`) to return expansion options that contain the value as some substring of a term or phrase. For example, this might expand th to theater, with, and anthem.

- Phrase. Expand the text into phrases that begin with the word or words in the input text. In this case, the input must appear as a complete word (or words) at the start of the suggested phrase. For example, an input of man might return man in the moon, or man of steel, but does not return Manchester City or Manchester United.

  NOTE: To use this option in Index Mode, your IDOL Content component must be configured with a phrase index. For more information, refer to the IDOL Content Component Reference.

  This option is not available in AnswerBank Mode. Answer Bank returns phrases (questions), but always assumes that the input text can be part of a word, rather than a whole word.

Actions: | TypeAhead
Type: | String
Default: | Trailing
Example: | `Behavior=substring`
See Also: | DictionaryMaxNGram DictionaryMinNGram

_FT_HTML5_bannerTitle.htm