# Set the text label of a component dynamic?

**URL:** <https://forum.kirupa.com/t/set-the-text-label-of-a-component-dynamic/146928>\
**Category:** Uncategorized\
**Created:** [May 5, 2005, 11:43am UTC](https://forum.kirupa.com/t/set-the-text-label-of-a-component-dynamic/146928 "2005-05-05T11:43:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keitai](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@keitai](https://forum.kirupa.com/u/keitai)\
**Post date:** [May 5, 2005, 11:43am UTC](https://forum.kirupa.com/t/set-the-text-label-of-a-component-dynamic/146928/1 "2005-05-05T11:43:14Z")

</div>

Hi all,

Trying to set the text label parameter of a component dynamicly.

Name of my component "btnApply

Tried with this code so far

```php

lang = "EN";

if(_root.lang == "EN") {
btnApply.label = "Submit";
btnApply.label.text = "Submit 2";
}

```

But this doesn’t work.

Any ideas
