# Getting values from HTML element

**URL:** <https://forum.bubble.io/t/getting-values-from-html-element/333843>\
**Category:** Database\
**Created:** [August 2, 2024, 5:41pm UTC](https://forum.bubble.io/t/getting-values-from-html-element/333843 "2024-08-02T17:41:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuel.basto](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@manuel.basto](https://forum.bubble.io/u/manuel.basto)\
**Post date:** [August 2, 2024, 5:41pm UTC](https://forum.bubble.io/t/getting-values-from-html-element/333843/1 "2024-08-02T17:41:13Z")

</div>

Well i was trying to build a page where iuser can change the background color of the page, background of a repeating group and font color, using 3 color picker inputs, but i dont wanted to do use plugins except toolbox. So i used an HTML element to make the inputs. And followed a solution for a similar problem to make the first input, it worked but when i add the other 2 inputs, just the one in first order works.  
Maybe its too simple, but i think im missing something😅  
This is what i was trying to do. First i put the 3 inputs in my HTML element

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/e/5ebacbb75607d94203c1bb8a1ed80691eae0705d.png)

And i set the id of each input with a Javascript to bubble element for any input:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/d/8dfcf1a8e938996c3208bce0b8b6528a7e1689cd.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/f/df080e6932ad32befb04305f336780b4106f29fe.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/1/8/18df5cd1bd28b969c293e4c4a905d5f0d229a4d3.png)

And in the workflow i did this. I add 3 “Run javascript” action to get each value of the 3 inputs. The script in the other two are the same, just changing de suffix and id for “cardPicker” or “fontPicker” respectively.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/2/7/27c5854a9bfafe8479f1a267edb1c8284e1a585f.png).

Then, when the script is executed just trigger a workflow to save the value in data base. Also, the workflow for the other 2 scripts is similar, changing the field and value.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/b/4/b4a43eda6fe9e2a5297d4941cbc9e158176bb295.png)

I tought it will work like running the scripts and workflows 1 by 1 sequentially. But just work the first run javascript action, i can change the order, but always work only the first one.

Thank you, for all your help btw.

---

<div class="post-metadata">

**Author:** ![ihsanzainal84](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ihsanzainal84/32/245932_2.png) [@ihsanzainal84](https://forum.bubble.io/u/ihsanzainal84)\
**Post date:** [August 3, 2024, 8:28am UTC](https://forum.bubble.io/t/getting-values-from-html-element/333843/2 "2024-08-03T08:28:42Z")

</div>

Have you tried calling all 3 Toolbox functions in 1 Run Javascript action?

Edit: Also make sure there are no additional spaces after each function name in the JavaToBubble elements.
