We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Unable to change the default error message for the TimePicker

Thread ID:

Created:

Updated:

Platform:

Replies:

130581 May 19,2017 12:57 AM May 23,2017 05:50 AM ASP.NET Core 3
loading
Tags: TimePicker
dsapo
Asked On May 19, 2017 12:57 AM

Hi Support:

I need to display a custom error message for the time picker. I tried this without success:

 <ej-time-picker id="_Time" name="_Time" interval="5"
                            validation-rules='new Dictionary<string, object>() { { "required",true} }'
                            validation-message='new Dictionary<string, object>() { { "required","Required!"} }'
                            >

            </ej-time-picker>

When I run the view, the error message that is displayed is: "This field is required."

As you can see, we want to display an exclammation character instead.

Thanks

David

Prem Kumar Madhan Raj [Syncfusion]
Replied On May 22, 2017 07:54 AM

Hi David,   
Thanks for contacting Syncfusion support.  
We have analyzed your query “to change default error message of timepicker”.    
Since the “validation-message” API of timepicker has been deprecated and replaced by “validation-messages” from “2017 volume 2 release”, please make use of “validation-messages” instead of “validation-message” to change the default error message.    
Please refer the below code block to change the default error message of the timepicker.   
    <ej-time-picker id="_Time" name="_Time" interval="5" validation-rules='new Dictionary<string, object>() { { "required",true} }' validation-messages='new Dictionary<string, object>() { { "required","Required!"} }'> 
    </ej-time-picker> 
For further details about features or breaking changes, please refer the release notes for volume 2 release.   
Regards,   
Prem Kumar. M   


dsapo
Replied On May 22, 2017 01:21 PM

Thanks Kumar for your help to solve this.

David



Prem Kumar Madhan Raj [Syncfusion]
Replied On May 23, 2017 05:50 AM

Hi David, 
 
We are glad to hear that the issue has been fixed. 

Please let us know if you need further assistance.  

Regards, 

Prem Kumar.M 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;