Announcement

Collapse
No announcement yet.

validation of datetime field

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • validation of datetime field

    Hello there,

    you really made it work with SC6. Validation is nice now. There is only one little bug:

    When I set datetime field as required and display calendar, as soon as a person picks a date using the calendar I get the validation message "Required field" and field is tagged red.

  • #2
    Re: validation of datetime field

    Also, when I use sc_error_message onValidation, I do get the correct error message, but first wrong field is not focused and not tagged red.

    onValidation
    if ($registration_end_date > $start_date) {
    $error_message_lang_regi_grea_star = {lang_regi_grea_star}; // error message
    sc_error_message ($error_message_lang_regi_grea_star); // display error message and mark field red
    }

    User does get the message that specific fields are invalid, but after he closes the message he has to search for those fields. Actually all fields that have invalid data or are required, but have no data, should get tagged red onValidation unless they are not being displayed or hidden do to some setting in the form.

    I know I have been bugging you with this, but most forms work this way. You will see right away where you entered wrong data or missed to enter something with required field.

    For now I can go on developing, but I hope you consider those changes or features in core...

    Comment


    • #3
      Re: validation of datetime field

      + 1

      You're right,
      the date field is red even if a valid date is picked up by calendar...
      To avoid you must click on date field and then click again anywhere on the form : this may be couses the "lost focus" event on the field and triggers a new field validation with the same date, this time succesful !

      I think this is a bug...

      Regards

      Comment


      • #4
        Re: validation of datetime field

        Does anybody have news about it ?
        I'd liked to show a calendar to my users to pick up right dates...

        Regards

        Comment


        • #5
          Hello guys,

          I have reported this issue to our bugs team for further testing.

          regards,
          Bernhard Bernsmann

          Comment


          • #6
            Hello guys,

            Our bugs team just got back at me, and I was informed that this issue was solved on SC 6.0.033. Please update your SC, and let me know if the issue continues.

            Bug
            -
            Fixed the "required field" message in Date type of fields after the date is selected from the calendar.

            regards,
            Bernhard Bernsmann

            Comment

            Working...
            X