Announcement

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

    How to change FloatItem validation message

    How do you change the validation message for a FloatItem? It currently defaults to "Must be a valid decimal." Our requirements specify a different message.

    Thanks!

    #2
    Two ways:

    1) you can add your own (redundant) isFloat validator and add an errorMessage to that

    2) you can change the message system-wide - one way to this is treat this as an override of the default (US en) locale, but a shortcut that works for just one property would be to execute the following JSNI:

    Code:
    $wnd.isc.Validator.addClassProperties({notADecimal:"New message"});

    Comment

    Working...
    X