tv4 icon indicating copy to clipboard operation
tv4 copied to clipboard

how to call the custom message with dynamic value minLength, maxLength

Open keshavwork opened this issue 10 years ago • 0 comments

Hi bellow is the example:

{ title: "Name", type: "String", minLength: 4, maxLength: 6 messages: { minLength: "Your name must be at least "dynamic value" characters long.", maxLengh: "Your name must be no more than six characters long" } }

example : dynamic value( 1,2....); i am getting default message like this

String is too long (7 chars), maximum 5 but i am looking for same dynamic value in my custom message.

in this example: how can i pass the dynamic value scope.options = { formDefaults: { validationMessage: { 200: "This string is too {maxLength} short, man.", 302: "You can't just leave it blank, man." } } }

i try above one it's not working.

keshavwork avatar Feb 05 '15 10:02 keshavwork