# Is it possible to set a "run target" parameter from javascript "BeforeAction"?

**URL:** <https://www.finalbuilder.com/forums/t/is-it-possible-to-set-a-run-target-parameter-from-javascript-beforeaction/7267>\
**Category:** Discussion\
**Tags:** finalbuilder, actions\
**Created:** [August 8, 2022, 3:04pm UTC](https://www.finalbuilder.com/forums/t/is-it-possible-to-set-a-run-target-parameter-from-javascript-beforeaction/7267 "2022-08-08T15:04:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ktopaz](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/ktopaz/32/2390_2.png) [@ktopaz](https://www.finalbuilder.com/forums/u/ktopaz)\
**Post date:** [August 8, 2022, 3:04pm UTC](https://www.finalbuilder.com/forums/t/is-it-possible-to-set-a-run-target-parameter-from-javascript-beforeaction/7267/1 "2022-08-08T15:04:40Z")

</div>

I Tried

> Action.SetVariable(“msg”,Action.ActionLogTitle);

But I believe that’s probably only for setting the nearest scope variable named “msg” and not the target parameter named “msg”.  
Is it possible to set the run target parameters from script?

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [August 10, 2022, 12:30am UTC](https://www.finalbuilder.com/forums/t/is-it-possible-to-set-a-run-target-parameter-from-javascript-beforeaction/7267/2 "2022-08-10T00:30:30Z")

</div>

No it’s not currently possible, the parameters object is not exposed to scripting. I did look at it and it’s not possible to do in FB8 as it would be an interface breaking change with .net based custom actions. We’ll take a look and see if it can be added in FB9.

> [@ktopaz](#):
>
> But I believe that’s probably only for setting the nearest scope variable named “msg” and not the target parameter named “msg”.

That’s correct.
