Issue #772Opened January 17, 2018by krunal0391 reactions

trait validation

Question

Is there way to restrict trait length i.e title cannot be more than 255 chars and if user try to add more than that, should display error message?

Answers (3)

ryandebaJanuary 18, 20181 reactions

Hi @krunal039,

The only way I know to do something like would be to make a custom trait and use the getInputEl function to either set a maxlength property on your input or create a section show whatever errors that you want.

artfJanuary 18, 20180 reactions

The only way I know to do something like would be to make a custom trait

Correct

krunal039January 19, 20180 reactions

@ryandeba @artf , thanks for reply, is there way to pass property(max length, validation error message) to custom traits?

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.