3 Replies Latest reply on Jan 10, 2012 5:55 AM by try67

    List_box with OnChange , always uses preselected value instead of new selected

    abcNocturn Level 1

      Hi,

      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.

      Example :

           Listitems :

                test1 ( preselected )

                test2

                test3

       

      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 ?