# \[ASK AS2\] How to make an Input Text trigger an action?

**URL:** <https://forum.kirupa.com/t/ask-as2-how-to-make-an-input-text-trigger-an-action/322909>\
**Category:** Uncategorized\
**Created:** [June 8, 2011, 11:42am UTC](https://forum.kirupa.com/t/ask-as2-how-to-make-an-input-text-trigger-an-action/322909 "2011-06-08T11:42:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sangjagoan](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@sangjagoan](https://forum.kirupa.com/u/sangjagoan)\
**Post date:** [June 8, 2011, 11:42am UTC](https://forum.kirupa.com/t/ask-as2-how-to-make-an-input-text-trigger-an-action/322909/1 "2011-06-08T11:42:02Z")

</div>

I want to trigger an action when changing value in Input Text any time with this code

```php
inTempSP.onChanged=function(){
        if(vTempSP>100){trace("Temperatur over heat")};
        if(vTempSP<100){trace("Temperatur OK")};
    }

```

But i don’t know that code is not working well. Any help pleaseeee ??

Note:  
inTempSP = Instant name of Input Text  
vTempSP = Variable name of Input Text
