# How to get properties on initialize function?

**URL:** <https://forum.bubble.io/t/how-to-get-properties-on-initialize-function/73725>\
**Category:** Plugin builders\
**Created:** [December 9, 2019, 11:36pm UTC](https://forum.bubble.io/t/how-to-get-properties-on-initialize-function/73725 "2019-12-09T23:36:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafael.g.l.silva](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@rafael.g.l.silva](https://forum.bubble.io/u/rafael.g.l.silva)\
**Post date:** [December 9, 2019, 11:36pm UTC](https://forum.bubble.io/t/how-to-get-properties-on-initialize-function/73725/1 "2019-12-09T23:36:19Z")

</div>

I want to get the properties to initialize the css on the initialize function but that just don’t exist there. How do I get that?

---

<div class="post-metadata">

**Author:** ![AliFarahat](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alifarahat/32/189604_2.png) [@AliFarahat](https://forum.bubble.io/u/AliFarahat)\
**Post date:** [December 9, 2019, 11:50pm UTC](https://forum.bubble.io/t/how-to-get-properties-on-initialize-function/73725/2 "2019-12-09T23:50:14Z")

</div>

You don’t. The initialize function is just that! It does not support dynamic properties. You can use shared keys. That’s about it

---

<div class="post-metadata">

**Author:** ![rafael.g.l.silva](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@rafael.g.l.silva](https://forum.bubble.io/u/rafael.g.l.silva)\
**Post date:** [December 10, 2019, 12:03am UTC](https://forum.bubble.io/t/how-to-get-properties-on-initialize-function/73725/3 "2019-12-10T00:03:00Z")

</div>

Can you give me a exemple of it?  
I just need to take the properties.font\_color and use it on initialize css, just like preview function.

---

<div class="post-metadata">

**Author:** ![AliFarahat](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alifarahat/32/189604_2.png) [@AliFarahat](https://forum.bubble.io/u/AliFarahat)\
**Post date:** [December 10, 2019, 12:07am UTC](https://forum.bubble.io/t/how-to-get-properties-on-initialize-function/73725/4 "2019-12-10T00:07:19Z")

</div>

Ya sure, So add a shared key like this

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

or like this if your planning to use as a header

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/c/ac34a58b49a4e971cd9231ad994c85071f72d3e8.png)

And use anywhere like this

```
//Get Bubble Dynamic List and store in a variable
let vKey = context.keys['Key name as string'];

```

---

<div class="post-metadata">

**Author:** ![jon2](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@jon2](https://forum.bubble.io/u/jon2)\
**Post date:** [January 3, 2020, 5:23pm UTC](https://forum.bubble.io/t/how-to-get-properties-on-initialize-function/73725/5 "2020-01-03T17:23:44Z")

</div>

@AliFarahat @bubble I’m wondering if end-users would be able to inspect variables containing private API keys at runtime and view view them? Seems like they would?

---

<div class="post-metadata">

**Author:** ![vini\_brito](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vini_brito/32/22187_2.png) [@vini\_brito](https://forum.bubble.io/u/vini_brito)\
**Post date:** [January 3, 2020, 7:15pm UTC](https://forum.bubble.io/t/how-to-get-properties-on-initialize-function/73725/6 "2020-01-03T19:15:02Z")

</div>

Private API keys are never sent to the browser, only usable server side. Public API keys are sent to the browser so you can use in element and client side actions.  
That’s the only difference between them.
