Sub topic 5
Add help text and set how the drop-down looks
This chapter covers the parts of a drop-down that the user sees. These are the help text that explains what to enter, and the appearance of the cell: chip, arrow or plain text, with or without colors. It assumes you can already create a drop-down from a typed list and choose between rejecting input and showing a warning. It also assumes you are comfortable with relative references such as A2.
What this chapter adds
A drop-down that works is not always a drop-down that people use correctly. Three things make the difference:
- A short message tells people what the cell expects before they get it wrong.
- The cell looks different from ordinary cells, so people know it holds a choice.
- Each value is visually distinct, so a column of statuses can be scanned quickly.
None of this changes which values the cell accepts. Help text and appearance are presentation. The criteria and the invalid-input setting still decide what is allowed.
Where the settings live
Select the cells, then choose Data > Data validation. The Data validation rules side panel opens. Click Add rule, or click an existing rule to edit it. The relevant controls are:
| Control | Where | What it sets |
|---|---|---|
| Criteria | Main part of the rule | Dropdown or Dropdown (from a range), plus the items |
| Item color | Circle beside each item | The color a chosen value shows in the cell |
| Advanced options | Collapsed section below the criteria | Everything else in this table |
| Show validation help text | Advanced options | Whether your own message is shown, and its text |
| On invalid data | Advanced options | Show a warning, or Reject the input |
| Display style | Advanced options | Chip, Arrow or Plain text |
Google has moved these controls around between releases. If your panel differs, look for the same options under Advanced options.
Help text
Help text is a message you write that is attached to the rule. In the side panel, open Advanced options, tick Show validation help text, and type the message in the box that appears.
When people see it
The message appears when someone interacts with the cell in a way that involves the rule. The exact trigger depends on the cell's state and your invalid-data setting:
- With Reject the input, a value that fails the rule is refused and your help text appears in the message that explains why.
- With Show a warning, the invalid value stays in the cell and a small red triangle appears in the corner. Hovering over the triangle shows the message.
- Apps Script describes
setHelpTextas the text shown when the user hovers over the cell that has validation.
Because the display rules have changed over time, test your own sheet. Enter a bad value in a copy of the range and see where your message shows up.
If you leave the box empty or untick the option, Sheets shows a generic message. For a drop-down it says the input must be an item on the specified list. That message is accurate, but it does not tell the user what the cell is for.
Writing useful help text
The message is read at the moment something has gone wrong. It works best when it does three things:
- It says what the cell holds.
- It says what is allowed.
- It says what to do next, if that is not obvious.
Compare these messages for a status column:
| Weak | Better |
|---|---|
| Invalid input | Pick a status from the list: Not started, In progress or Done. |
| Wrong | Enter a date between 1 Jan 2025 and today. |
| See the instructions sheet | Each ID must be unique. Check column A for this ID. |
Keep the message to one or two short sentences. Long text is cut off or hard to read in the small message box. If the list is long, name the purpose and let the drop-down show the options.
Help text with Apps Script
In a script, setHelpText attaches the message. This is the status drop-down from the plan, with each call explained:
function addStatusDropdown() {
const sheet = SpreadsheetApp.getActiveSheet();
const rule = SpreadsheetApp.newDataValidation()
// The second argument, true, shows the drop-down arrow in the cell.
.requireValueInList(['Not started', 'In progress', 'Done'], true)
// false means reject anything outside the list.
.setAllowInvalid(false)
// The message people see for this rule.
.setHelpText('Pick a status from the list.')
.build();
sheet.getRange('C2:C100').setDataValidation(rule);
}Calling setAllowInvalid(true) instead gives the warning behavior. The second argument to requireValueInList is a boolean named showDropdown. If you pass false, the list is still enforced but the cell shows no arrow, and people have to type the value exactly. That is almost never what you want for a user-facing sheet.
Choosing how the drop-down looks
For a drop-down rule, the Display style option controls what an item looks like once chosen. There are three styles.
Chip
A chip is a rounded colored label inside the cell, similar to a tag. It is the clearest style when items have colors, because the whole label is filled in. It also makes the cell obviously interactive. Chips take more horizontal room, so long item names need a wider column.
Arrow
The arrow style shows the chosen value as ordinary text with a small downward arrow at the right edge of the cell. It looks closest to a classic drop-down, and it fits best in dense tables where colored shapes would be distracting. If you assign colors to items, the arrow style still shows the color as a background fill behind the text, but without the chip's rounded shape.
Plain text
Plain text hides the visual cue. The cell looks like any other cell until someone selects it, and then the list appears. Use this style when the validation is a safeguard rather than a feature. For example, you might validate a column that people mostly paste into or fill by script.
| Style | Looks like | Best for | Watch out for |
|---|---|---|---|
| Chip | Rounded colored label | Status or category columns people scan | Needs wider columns |
| Arrow | Text plus a dropdown arrow | Compact tables, forms to fill in | Less visual separation between items |
| Plain text | Looks like normal text | Cells where the cue is unwanted | Users may not know a list exists |
The style is stored in the rule. If you copy the cell and paste it elsewhere, the new cells keep the style.
Item colors
Each item in a typed list or a range-based list can have a color. In the side panel, click the circle beside an item and choose a color. The color is attached to that item, not to a position in the list, so reordering the items keeps each color with its item.
Some practical points:
- Colors help most when meaning is consistent. For example, green for Done, amber for In progress, gray for Not started. Reuse the same mapping in every sheet.
- Do not rely on color alone. People with color-vision differences, and anyone reading a printout in black and white, need the text too. The item name always remains in the cell, so this only fails if you pick colors that are too close together.
- Colors belong to the item entry, not to the cell's value. A formula cannot read the color.
=C2returns the textDone, nothing more. If another part of the sheet needs to react to a status, base it on the text. - If you built the drop-down from a range, the items come from cells, so editing the range text changes the options. Check the colors after renaming an item. An item with a changed name may be treated as a new item with no color.
Setting colors from Apps Script is limited. The DataValidationBuilder methods I have documented cover the list, the arrow, help text and invalid-input handling, and I know of no method for item colors or chip style. If a script must produce the final look, apply the rule from the script and set colors in the UI, or use conditional formatting as described next.
Conditional formatting as an alternative
Item colors apply only to drop-down rules and only to the cell holding the value. If you want a whole row to change color depending on its status, use Format > Conditional formatting instead. A custom formula rule applied to A2:F100 with this formula highlights every row marked Done:
=$C2="Done"The $C fixes the column so every cell in the row checks the status cell. The row number stays relative, so each row checks its own status. Combining the two is common. The drop-down enforces valid values, the item color marks the status cell itself, and conditional formatting shades the row.
Common problems
- The help text never appears. Check that Show validation help text is ticked and the box is not empty. Then check the invalid-data setting, since the message may show only on hover or on rejection.
- The cell has no arrow. The display style may be Plain text, or the script passed
falseas theshowDropdownargument. Edit the rule and choose Arrow or Chip. - Colors disappeared after editing the list. A renamed item can lose its color. Open the rule and reassign colors.
- Chips are cut off. Widen the column, switch to Arrow, or shorten item names.
- Pasted values look different. Pasting copied cells brings their validation and appearance with them. Pasting values only (Paste special > Values only) brings the text but no rule or style, so the destination keeps its own rule.
Putting it together
A good validated input column has these features:
- Criteria that match the real set of allowed values.
- An invalid-data setting chosen for the situation: Reject the input when bad values cause errors, Show a warning when people need a way to override.
- Help text that names the allowed values or the format.
- A display style that matches how dense the sheet is.
- Colors only where they carry meaning, backed by the text in the cell.
Exercise
A "Priority" column has a drop-down with High, Medium and Low. A teammate enters "Urgent" and sees only the message "Input must be an item on the specified list." Name the setting that lets you replace that with your own message, and give a one-sentence message suited to this column.
Show answer
Tick "Show validation help text" under Advanced options and type your message there (in Apps Script, use setHelpText). A suitable message is: "Choose High, Medium or Low from the list."
Exercise
You color-code a Status drop-down: green for Done, amber for In progress. A colleague writes =IF(C2="green", 1, 0) to count finished tasks, and it always returns 0. Why, and what formula should they use?
Show answer
Item colors are display only. The cell stores the text, so a formula sees "Done", never "green". They should compare the text, for example =IF(C2="Done", 1, 0), or count with =COUNTIF(C2:C100, "Done").
Exercise
A script calls requireValueInList(['Yes', 'No'], false) and sets the range. Users complain that they must type the answer exactly. What is the cause, and how do you fix it?
Show answer
The second argument is showDropdown, and false hides the drop-down arrow, so users have to type the value. Change it to true: requireValueInList(['Yes', 'No'], true).