---
schema_version: "1"
id: f9b340258d46cf98d80fe147320b9bcd99dbbf5e36511c17947f599a6f05a545
title: setParam()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/ref-jsapi/ref-jsapi-event-setparam.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-event-setparam.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: ee66aff987169b4b73ad58c6e7f4189749435837d8e10c9394c21e749746302d
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# setParam()

Sets a parameter for an event. This method doesn’t modify an event that has already been fired.

## Signature

`setParam(String key, Object value)`

## Parameters

**_key_:** Type: `String`. The name of the parameter.

**_value_:** Type: `Object`. The value of the parameter.

