AnsweredAssumed Answered

How to use 'validateUnique' validation in FormControlValidationMixin

Question asked by satheeshkumar on Mar 31, 2015
Latest reply on Mar 31, 2015 by satheeshkumar

Can any one please post an example of how to use the "validateUnique" validation of FormControlValidationMixin.
The usage is given like,

      "validation": "validateUnique",
      "errorMessage": "Already used",
     "itemsProperty": "items",
     "publishTopic": "GET_VALUES"

But I could not see any examples on how to use this.

For example, I am adding this in a field of a form say "prefix" to validate the uniqueness, now how can I make the "GET_VALUES" topic to retrieve the list of "prefix" and put it in "items".

Please let me know if you are not clear about my question.

Thanks in Advance.