How does onRender work

Hi All,
I am not so much into servoy developing. So, I am getting bit difficulty getting onRender event of form.
Let me explain, what i got- whenever i attach function to onRender event of any element/form then that function will be triggered whenever there is change in that element/form. Right?

Then,why onRender function is not triggered when value is changed in Field.
let me explain my situation. With clicking on different buttons i am changing the value of Field and accordingly i want to change visibility of different icons with different value in Field

Thanks in advance

Hi,

As far as I know the onRender event only triggers when the form needs to repaint itself. Touching a field value using code would only trigger a repaint if that field is indeed on the form. If that is not the case then you could force the repaint by using application.updateUI().

However if the field is indeed on the form and the event doesn’t trigger I would consider that a bug and you should file it as such with servoy support.

Hope this helps.