# Pass Parameter UX file at JS file

**URL:** <https://forums.fusetools.com/t/pass-parameter-ux-file-at-js-file/942>\
**Category:** How-to Discussions\
**Created:** [October 12, 2016, 12:34pm UTC](https://forums.fusetools.com/t/pass-parameter-ux-file-at-js-file/942 "2016-10-12T12:34:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jimmy\_Rodriguez](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jimmy_rodriguez/32/465_2.png) [@Jimmy\_Rodriguez](https://forums.fusetools.com/u/Jimmy_Rodriguez)\
**Post date:** [October 12, 2016, 12:34pm UTC](https://forums.fusetools.com/t/pass-parameter-ux-file-at-js-file/942/1 "2016-10-12T12:34:37Z")

</div>

good morning, how do I pass a parameter file ux to a js file, this parameter I need to pass this way is because I’m going to send my api Rest so you can get me just the data I need.

---

<div class="post-metadata">

**Author:** ![Jimmy\_Rodriguez](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jimmy_rodriguez/32/465_2.png) [@Jimmy\_Rodriguez](https://forums.fusetools.com/u/Jimmy_Rodriguez)\
**Post date:** [October 12, 2016, 12:41pm UTC](https://forums.fusetools.com/t/pass-parameter-ux-file-at-js-file/942/2 "2016-10-12T12:41:16Z")

</div>

![file]([https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/XNqAYFX9T0cV-image-1476276049283.36.32](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/XNqAYFX9T0cV-image-1476276049283.36.32) AM.png)\> **Jimmy Rodriguez wrote:**

> good morning, how do I pass a parameter file ux to a js file, this parameter I need to pass this way is because I’m going to send my api Rest so you can get me just the data I need.

---

<div class="post-metadata">

**Author:** ![Jimmy\_Rodriguez](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jimmy_rodriguez/32/465_2.png) [@Jimmy\_Rodriguez](https://forums.fusetools.com/u/Jimmy_Rodriguez)\
**Post date:** [October 12, 2016, 12:58pm UTC](https://forums.fusetools.com/t/pass-parameter-ux-file-at-js-file/942/3 "2016-10-12T12:58:47Z")

</div>

in the first image ux file has a classe called “items” and is a component that loads the data within the data shown I need to take a value and send it to a js file and make a fetch to retrieve data only that value is an id.

example:  
I retrieve the data that are surveys, and the id of that table is the need to send to retrieve the survey questions.

![file]([https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/MqPmtN7YHZ9z-image-1476276504325.44.36](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/MqPmtN7YHZ9z-image-1476276504325.44.36) AM.png)

---

<div class="post-metadata">

**Author:** ![Jimmy\_Rodriguez](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jimmy_rodriguez/32/465_2.png) [@Jimmy\_Rodriguez](https://forums.fusetools.com/u/Jimmy_Rodriguez)\
**Post date:** [October 12, 2016, 1:19pm UTC](https://forums.fusetools.com/t/pass-parameter-ux-file-at-js-file/942/4 "2016-10-12T13:19:31Z")

</div>

ONLY I NEED TO KNOW, HOW TO PASS A PARAMETER BETWEEN UX FILE TO JS FILE,.

---

<div class="post-metadata">

**Author:** ![kusma](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/kusma/32/595_2.png) [@kusma](https://forums.fusetools.com/u/kusma)\
**Post date:** [October 12, 2016, 1:40pm UTC](https://forums.fusetools.com/t/pass-parameter-ux-file-at-js-file/942/5 "2016-10-12T13:40:15Z")

</div>

This is documented [here](https://www.fusetools.com/docs/tutorial/navigation-and-routing).
