Announcement

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

    Validator.setDependentFields() trouble

    Hi,
    I am having problem with validators dependentFields feature. Could be my misunderstanding as well.
    I have DynamicForm bounded to the DataSource with two fields: "first", "second" displayed in this order.
    Form has corresponding FormItem's defined.
    Both items have custom validators. First item's validator has additionally dependentFields set to "second".
    My undestanding is, that in such situation saving the form should trigger validation of the second item and then attempt to validate first item.
    But it is not in me case - whatever I do, validation is done according to the items order on the form.
    MichalG
    SmartGWT 3.0

    #2
    Sounds like a misunderstanding. dependentFields does not change the order in which validators are run, it just affects whether a change to one field only (while other fields are unchanged) would cause validators on other fields to run.

    Comment

    Working...
    X