Date validation does not work

Support MB Builder Date validation does not workResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27793
    Nuno CruzNuno Cruz
    Participant

    I have a date field with the following characteristics:
    Type: DatePicker
    Save Format: Y-m-d
    - dateFormat: dd/mm/yy
    Validation: Date
    Required: none
    html5: autocomplete = off (this should be the default for DatePicker)

    #27803
    Long NguyenLong Nguyen
    Moderator

    Hi Nuno,

    If you use the Validate date, it will apply the date method of jQueryValidation to validate the input value, you can find here https://jqueryvalidation.org/date-method/. That means the date input format should be mm/dd/yy or mm-dd-yy. Refer to this article https://www.w3schools.com/js/js_date_formats.asp

    So I recommend removing the validation when using the field type date, the user also cannot type any text to the input box.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.