ic-ui-kit icon indicating copy to clipboard operation
ic-ui-kit copied to clipboard

Internal issue 2830 - Override inbuilt error messages

Open ticket-sync[bot] opened this issue 1 year ago • 1 comments

On date input, disableFutureMessage property allows for custom error messages which helps localise our project - this is really handy! If the date input is invalid, we get the built in message 'please enter a valid date'. Would it be possible to have an invalidDateMessage property so we can localise the invalid date error message too? 

Also, we have a similar issue with the maxLength on the text field component. We would like to localise the error message 'maximum length exceeded' e.g by having a maxLengthMessage property. What do you think?

ticket-sync[bot] avatar Aug 02 '24 10:08 ticket-sync[bot]

Quick fix of introducing the prop, long term we will have an object of changing all validation messages

MI6-255 avatar Aug 15 '24 09:08 MI6-255