Employee Validation

  • + 0 comments

    I trying so hard for this challenge, its weird because the logic is different, if u see the error carefully u would understand how to abuse it T_T

    the logic is,

    "joining date" will display two same error at the first, just clone the error. But if "joining date" was correctly inputed, that one error should shows until all field correctly inputed.

    THEN, if name, email, employeeId is null that "joining date" error should only shows once, but if u correctly input the "joining date" (while name, email, employeeId is null) all errors of "joining date" should disappear:)