# Events

**URL:** <https://forum.servoy.com/t/events/4423>\
**Category:** Classic Servoy\
**Created:** [June 24, 2005, 1:05pm UTC](https://forum.servoy.com/t/events/4423 "2005-06-24T13:05:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebrandt](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@ebrandt](https://forum.servoy.com/u/ebrandt)\
**Post date:** [June 24, 2005, 1:05pm UTC](https://forum.servoy.com/t/events/4423/1 "2005-06-24T13:05:14Z")

</div>

I am having a little trouble understanding when certian events are triggered.

I have a portal that has 3 fields ; fielda,fieldb,fieldc

If fielda = ‘value’ then clear fieldb and fieldc.

The code is as follows:

if (Orders\_to\_Lines.fielda != null)  
{  
fieldb = null;  
fieldc = null;  
}

First problem:  
I attached this method to fielda OnFocusLost ~~ if I have no value in fielda the method evaluates as **true**

Second problem:  
I attached this method to fielda OnDataChange ~~ although I did not change any data, just clicked on fielda, the method evaluates as **true**.

I must be missing something simple.

Thanks for any insight,  
Erich
