# Editing values from a custom JavaScript Embed

**URL:** <https://community.weweb.io/t/editing-values-from-a-custom-javascript-embed/3055>\
**Category:** Ask us anything\
**Created:** [June 14, 2023, 1:34pm UTC](https://community.weweb.io/t/editing-values-from-a-custom-javascript-embed/3055 "2023-06-14T13:34:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [June 14, 2023, 1:34pm UTC](https://community.weweb.io/t/editing-values-from-a-custom-javascript-embed/3055/1 "2023-06-14T13:34:27Z")

</div>

I’ve searched the docs provided by @dorilama - thanks a lot man 🙂 But I haven’t found any reference to how I can change variables from custom scripts, eg.

I have an embed with Google Maps API and I’d like to set variables when interacting with the map, I have the methods to do it, but I don’t know what variables to set, or better, how to target my custom variables from outside.

Is there anything you can refer me to? 🙂

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [June 14, 2023, 1:48pm UTC](https://community.weweb.io/t/editing-values-from-a-custom-javascript-embed/3055/2 "2023-06-14T13:48:10Z")

</div>

You can trigger global workflows using javascript. The workflows can accept parapeters, so you can pass data to it. In the workflow use any nocode action you need, like “change variable”

To use a workflow from code:

- activate dev info  

- get the uid of the workflow  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/8/85fba9e377990389fd9a0d0d8d670555926b15bc.png)

- use `wwLib.executeWorkflow(uid,{param1:'value1'})` in your code
