Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    how to bind 2 formItems

    Hi there,

    Are there methods to bind 2 (or more)formItems, ex. textitem, when the user input in one item, the others' value will automatically updated?

    Thanks.

    #2
    Depends on how you mean bind. What do you expect to happen between the two? unless your dealing with dependent selects type situation, most likely need to add a changedHandler(or changeHandler) to the first item, to have it update the second.

    Comment


      #3
      Thanks.

      The "bind" I mean is like this, ex. I have 2 textItems, show one and hide the other, if I input in the shown one, I hope the value of the hidden one will be updated automatically.

      Comment


        #4
        Updated how? Again your best bet is going to be add a ChangedHandler to the shown one, which will do the update to the hidden one when the user edits the value.

        Comment

        Working...
        X