# \[Solved\] Input control button trigger always sending default context variable

**URL:** <https://forums.losant.com/t/solved-input-control-button-trigger-always-sending-default-context-variable/519>\
**Category:** Bug Report\
**Created:** [June 8, 2017, 6:43pm UTC](https://forums.losant.com/t/solved-input-control-button-trigger-always-sending-default-context-variable/519 "2017-06-08T18:43:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Ritter](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@Brian\_Ritter](https://forums.losant.com/u/Brian_Ritter)\
**Post date:** [June 8, 2017, 6:43pm UTC](https://forums.losant.com/t/solved-input-control-button-trigger-always-sending-default-context-variable/519/1 "2017-06-08T18:43:05Z")

</div>

I have an input control with a button that triggers a workflow. The payload sent to the workflow is specified as

```json
{
  "deviceIdConfig": "{{ctx.currentDevice}}",
  "reportRate": "{{reportRate}}"
}

```

reportRate is a slider input, and ctx.currentDevice is a Device ID context variable. When I look at the debug message of the incoming request in the workflow after the button is pressed, “deviceIdConfig” is always the default value specified for ctx.currentDevice. I know the context variable is updating properly in the dashboard because I’m using it for other widgets that are updating properly, and it shows up in the URL as a query parameter. I changed the default device ID just to make sure I hadn’t accidentally hard-coded it somewhere, and I got the same behaviour (the button sent the default ID specified for the context variable).

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [June 8, 2017, 8:47pm UTC](https://forums.losant.com/t/solved-input-control-button-trigger-always-sending-default-context-variable/519/2 "2017-06-08T20:47:49Z")

</div>

You’re absolutely right. We just pushed a hot fix and confirmed the issue is resolved. Please let us know if you’re still seeing the problem on your end.

Thanks for reporting!

---

<div class="post-metadata">

**Author:** ![Brian\_Ritter](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@Brian\_Ritter](https://forums.losant.com/u/Brian_Ritter)\
**Post date:** [June 8, 2017, 9:07pm UTC](https://forums.losant.com/t/solved-input-control-button-trigger-always-sending-default-context-variable/519/3 "2017-06-08T21:07:30Z")

</div>

Thanks for the fast response! It’s working as expected now.
