# Form load - initial input focus

**URL:** <https://forum.radzen.com/t/form-load-initial-input-focus/1765>\
**Category:** Angular\
**Created:** [October 14, 2019, 8:56pm UTC](https://forum.radzen.com/t/form-load-initial-input-focus/1765 "2019-10-14T20:56:23Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [August 21, 2020, 12:13pm UTC](https://forum.radzen.com/t/form-load-initial-input-focus/1765/5 "2020-08-21T12:13:45Z")

</div>

Check this thread for more info how to execute arbitrary JavaScript:

> [@Execute arbitrary JavaScript to set Layout component property value from Page](https://forum.radzen.com/t/execute-arbitrary-javascript-to-set-layout-component-property-value-from-page/3490):
>
> Hey folks, I've just made an example showing how to execute arbitrary JavaScript to set Layout component value from Page and I've decided to post it here in case someone need this as well. The challenge: Set MainLayout Label text runtime from Page/Component event. For this demo I'm using the label showing application name in the top left corner. The solution: Open the MainLayout, select the Label component and set id attribute: Add a DataGrid component bound to Orders to …

---

_[View the full topic](https://forum.radzen.com/t/form-load-initial-input-focus/1765)._
