# Ability to run JS in input controls

**URL:** <https://forums.losant.com/t/ability-to-run-js-in-input-controls/5779>\
**Category:** Feature Request\
**Tags:** dashboard\
**Created:** [February 18, 2025, 3:47pm UTC](https://forums.losant.com/t/ability-to-run-js-in-input-controls/5779 "2025-02-18T15:47:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanner\_Williams](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@Tanner\_Williams](https://forums.losant.com/u/Tanner_Williams)\
**Post date:** [February 18, 2025, 3:47pm UTC](https://forums.losant.com/t/ability-to-run-js-in-input-controls/5779/1 "2025-02-18T15:47:17Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/3/38f1d59d83bf3945a254c2fa48f71864dc044df7.png)  
Maybe the possibility to run js as an action with in the buttons in this block? Ive been making my own buttons for a while now before i noticed this block in the dashboard  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/9/98bb9b7671b969b466a78417854eb21a48f6b9ce.png)  
A lot of my buttons make request to outside services and/or do something upon the return of the results. So being able to do that in the buttons “designed” for the dashboard would be helpful!

---

<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:** [February 18, 2025, 5:17pm UTC](https://forums.losant.com/t/ability-to-run-js-in-input-controls/5779/2 "2025-02-18T17:17:48Z")

</div>

Thanks for the suggestion. What you’re asking for is tricky, though, as we’d be executing arbitrary user code in the same scope as the rest of the application - as compared to a [Custom HTML Block](https://docs.losant.com/dashboards/blocks/custom-html/), which is run in its own sandboxed iframe so we can allow code exection. I’d recommend recreating your input controls UI within such a block.
