I'm using a listbox wich starts a script when I change the value.
It works as far as it inserts not the new selected value, but the before selected value.
test1 ( preselected )
If you click on test2 the message shown is "test1". When you click then on any field ( for example test3 ), the message is test2. It appears that my script is used before the selecting and not after it.
var f_list = getField("listbox") ;
var f_text = getField("test") ;
f_text.value = f_list.value ;
Does anybody have an idea what I am making wrong ?
The way to access the new value is via event.change, not through the
Can you give me an example where I have to insert the code ?
As the last line of your code, try this:
f_text.value = event.change;