[CLOSED] Change validation text for DateField

  1. #1

    [CLOSED] Change validation text for DateField

    This is my DateField definition..attached is the error message when I enter a invalid date.
    How can I change the text that is displayed? My users won't know what n/j/y mean!!
    Besides, I want to say something completely different...how can I change?

      <ext:DateField runat="server" ID="txtDateOfInit" FieldLabel="Date of Initial Investment" AllowBlank="false" AutoFocus="true"  AnchorHorizontal="95%" ValidatorText="Date must be of format: mm/dd/yyyy" TabIndex="1">
    Attached Thumbnails Click image for larger version. 

Name:	Capture.PNG 
Views:	12 
Size:	18.1 KB 
ID:	7142  
    Last edited by Daniil; Nov 05, 2013 at 8:33 AM. Reason: [CLOSED]
  2. #2
    Hello!

    You should use InvalidText property. Look at the following sample:

    <ext:DateField 
        ID="DateField3" 
        runat="server"
        FieldLabel="Test DateField"
        InvalidText="Date must be of format: mm/dd/yyyy"
        Format="m-d-Y">  
    </ext:DateField>

Similar Threads

  1. Replies: 2
    Last Post: Jul 11, 2012, 5:18 PM
  2. [CLOSED] Datefield validation
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 03, 2010, 1:01 PM
  3. [CLOSED] Validation of DateField
    By macap in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 11, 2010, 11:29 AM
  4. Validation for DateField
    By n_s_adhikari@rediffmail.com in forum 1.x Help
    Replies: 2
    Last Post: Sep 09, 2009, 5:00 PM
  5. Replies: 12
    Last Post: Jun 17, 2009, 12:07 PM

Posting Permissions