# Add a focus iframe, web bridge and text input block

**URL:** <https://community.thunkable.com/t/add-a-focus-iframe-web-bridge-and-text-input-block/3199243>\
**Category:** Feature Requests\
**Created:** [September 13, 2024, 8:32am UTC](https://community.thunkable.com/t/add-a-focus-iframe-web-bridge-and-text-input-block/3199243 "2024-09-13T08:32:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)\
**Post date:** [September 13, 2024, 8:32am UTC](https://community.thunkable.com/t/add-a-focus-iframe-web-bridge-and-text-input-block/3199243/1 "2024-09-13T08:32:30Z")

</div>

Hello everyone,  
I’d like to request a future where we can request focus on a iframe or text input.

Basically for the input it just focuses on the input so the user can start typing without having to click the input component.

For the iframe and web bridge it is practically the same using this block we can request focus onto them so we can use JS code that requires focus on the body inside of the iframe.

Basically it calls focus to the iframe/web bridge so that we for example can call a copy to clipboard function, this function right now requires that the user has clicked the iframe and has focus on it.

Having a block inside of thunkable wich will let us do this automatically allows us to make hidden components that we can interact with.

Thanks

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [September 13, 2024, 6:51pm UTC](https://community.thunkable.com/t/add-a-focus-iframe-web-bridge-and-text-input-block/3199243/2 "2024-09-13T18:51:24Z")

</div>

Hello @sketch  
Thank you for creating this post  
By iframe, do you mean [web viewer component](https://docs.thunkable.com/app-design/ui-components/embed-components/web-viewer#call-web-viewers-reload)?

At the moment is possible to [enable auto focus on Text input components](https://docs.thunkable.com/app-design/ui-components/basic-components/text-input#advanced-properties).

---

<div class="post-metadata">

**Author:** ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)\
**Post date:** [September 13, 2024, 6:54pm UTC](https://community.thunkable.com/t/add-a-focus-iframe-web-bridge-and-text-input-block/3199243/3 "2024-09-13T18:54:34Z")

</div>

Hello @ioannis.

Yes by iframe I do mean the webviewer component, was referencing it as a html element sorry 😅.

> [@ioannis](#):
>
> At the moment is possible to [enable auto focus on Text input components](https://docs.thunkable.com/app-design/ui-components/basic-components/text-input#advanced-properties).

I know that but for this case I need to control when the text input gets focussed.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [September 13, 2024, 7:10pm UTC](https://community.thunkable.com/t/add-a-focus-iframe-web-bridge-and-text-input-block/3199243/4 "2024-09-13T19:10:47Z")

</div>

Hi @sketch  
Thank you for clarifying that

Have you tried controlling the focus by making the text input visible and invisible?

---

<div class="post-metadata">

**Author:** ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)\
**Post date:** [September 13, 2024, 7:22pm UTC](https://community.thunkable.com/t/add-a-focus-iframe-web-bridge-and-text-input-block/3199243/5 "2024-09-13T19:22:49Z")

</div>

Hi @ioannis thanks for your suggestion however I need to control, that when the input becomes visible the user can select to have auto focus or not.  
Using this block allows me to do that without needing multiple inputs
