1
0
-1

I am creating a custom address component.  After calling a dynamic data service from a validation script, I would like to notify the form that it is invalid, even if the individual fields were previously validated.

Will the form understand if I return a rejected promise from the validation rule?

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      You can only set the validation status of a component from within a validation rule. Calling a dynamic data service outside of a validation rule is ok provided that you record the result of the call to be checked in a validation rule.

      My response to your other question on this topic may also be relevant:

      How to trigger the "Valid after change if" rule on a fieldset?

       

      1. Ben Warner

        Adam Kaplan Did you get this working?

      CommentAdd your comment...