# Dropdown Submit

> Triggers when a user submits a dropdown/select interaction.

- ID: `dropdown_submit`
- Type: Interaction trigger
- Category: [Interactions](https://inventor.bot/docs/reference/triggers/interactions.md)

- Interaction trigger: blocks that respond to interactions (replies, modals, ...) can be used in its flows.

**Options**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `custom_id` | yes | The custom ID of the dropdown/select to listen for. Supports `*` wildcard matching (e.g. `ticket_*`). | e.g. `"my_dropdown"` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `custom_id` | The custom ID of the dropdown/select that was submitted. | e.g. `"my_dropdown"` |
| `wildcard_value` | If the Custom ID input uses a single `*` wildcard, this is the matched portion of the submitted dropdown/select Custom ID. | e.g. `"123"` |
| `values_csv` | Selected values joined by commas. | e.g. `"option_a,option_b"` |
| `values_json` | JSON array containing all selected values. | e.g. `"[\"option_a\",\"option_b\"]"` |
| `value_count` | Number of selected values. | e.g. `"2"` |
| `component_type` | Type of select menu interaction (string_select, user_select, role_select, mentionable_select, channel_select). | e.g. `"string_select"` |
| `user_id` | ID of the user who submitted the dropdown/select. | e.g. `"123456789012345678"` |
| `username` | Username of the user who submitted the dropdown/select. | e.g. `"johndoe"` |
| `user_avatar` | Avatar URL of the user who submitted the dropdown/select. | e.g. `"https://cdn.discordapp.com/avatars/123/abc.png"` |
| `channel_id` | Channel where the dropdown/select was submitted. | e.g. `"123456789012345678"` |
| `server_id` | Server where the dropdown/select was submitted. | e.g. `"123456789012345678"` |
| `application_id` | ID of the application that received this interaction. | e.g. `"123456789012345678"` |
| `interaction_id` | Unique interaction ID for this dropdown/select submit. | e.g. `"123456789012345678"` |
| `interaction_token` | Token for this interaction, useful for webhook follow-up/edit operations. | e.g. `"aW50ZXJhY3Rpb25fdG9rZW4"` |
| `app_permissions` | Permissions the bot/application had in the interaction channel, as a Discord bitfield string. | e.g. `"274877990912"` |
| `user_locale` | Discord locale of the user who submitted the dropdown/select. | e.g. `"en-US"` |
| `server_locale` | Preferred locale of the server where the dropdown/select was submitted, when available. | e.g. `"en-US"` |
| `interaction_context` | Where the interaction was used (`server`, `bot_dm`, or `private_channel`). | e.g. `"server"` |
| `message_id` | ID of the message the dropdown/select is attached to. | e.g. `"123456789012345678"` |

**Example**

```go
var trigger = dropdown_submit(Args{custom_id: "my_dropdown"})

func main() {
	send_text_message(Args{
		channel_id:      trigger.channel_id,
		message_content: "Custom ID: " + trigger.custom_id,
	})
}
```