# Make dynamic text change width of text box

**URL:** <https://forum.bubble.io/t/make-dynamic-text-change-width-of-text-box/128320>\
**Category:** Need help\
**Created:** [January 1, 2021, 6:00am UTC](https://forum.bubble.io/t/make-dynamic-text-change-width-of-text-box/128320 "2021-01-01T06:00:24Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![anon57860117](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@anon57860117](https://forum.bubble.io/u/anon57860117)\
**Post date:** [January 1, 2021, 7:08pm UTC](https://forum.bubble.io/t/make-dynamic-text-change-width-of-text-box/128320/6 "2021-01-01T19:08:26Z")

</div>

-Install the plugin name Toolbox by Mishav  
-add a BubbletoJavascript to your page  
-set the publish event to true  
-write this in your button onclick=‘bubble\_fn\_name’  
-set the workflow for the element event

> [@JavascriptToBubble - way to bring data back as User instead of text](http://forum.bubble.io/t/javascripttobubble-way-to-bring-data-back-as-user-instead-of-text/38462/4):
>
> No, what @mattmazzega is saying is this: Here’s a very simple example. On my page: When a complex data type is selected as the JS to Bubble’s type, you can feed it a thing by sending it the :unique id of a thing of that type and it will fetch that thing. So, in this example, when we click the Who Am I? button, we will execute bubble\_fn\_user and pass it a User’s unique ID as a string. We’ll just use Current User in this example. Here’s the workflow: ^^^ note the quotes - …

---

_[View the full topic](https://forum.bubble.io/t/make-dynamic-text-change-width-of-text-box/128320)._
