1 Reply Latest reply on May 15, 2008 10:57 PM by atta707

    Text input change

      I want simple thing: on my form I want to save only textinput fields which changed.
      How I can recognized them?
      Thanks in advance,
        • 1. Re: Text input change
          atta707 Level 2
          1) have a single function as a valueCommit event listener
          2) attached this listener to all the textinputs on your form
          3) any time use changes anything in the text input, the listner would be fired. use the currenctTarget property of the event to store a reference of current text input into a array collection.
          4) when user asks for a save, use the new values of the references stored in the array collection.

          alternatively, write you own custom implementation of TextInput class to add this logic to this new class.