Uploaded image for project: 'Document Management System'
  1. Document Management System
  2. DMS-2018

Required fields should show field names instead of id in validation modal popup

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Winter 2020 Enhancements
    • Labels:
      None
    • Company:
      All Clients/Multiple Clients

      Description

      In HTML document:

      1. Validation error is showing id's of input fields which needs to replaced by field names.

      https://careerbuilder.atlassian.net/browse/CBESCD-1224

       

      cc - Samir Nishant.Kondapaneni

        Attachments

          Activity

          Hide
          mohd.belal Mohd Belal (Inactive) added a comment -

          Hi,

          The validation message showing in case of HTML validation error follows following pattern:

          1. We are fetching the previous element of the input field to get the label name and if present showing the same in error message.
          2. If the previous html does not contains any html values, then we are fetching the name of input field to add to the validation message.

          In case of CBES document which is present in below url:

          https://dmsstage.workterra.net/candidate/document-review?param1=53801e8f11a267708640615176824ee0&param2=9f7c530735a71ea92f05432461b92006&param3=aadb3bfa6e9dd692c1b3504a33468b0b&param4=7cb74ae1b7e8246bfee203a9b89afadd&param5=4438307d31c6c3be025c573da2ee9667&param6=3c1a780c78acc6ae4283fbf5fbfd7fcb&param7=b49400ab42ff8edc80fd3a54b208fcea&param8=4438307d31c6c3be025c573da2ee9667

           

          1. There are some inputs where the label is attached before the input, in that case the error message is coming accurate. Example is: Main Phone#
          2. For some inputs like first_name, the label is not present and the input name is first_name,  due to which the error message contains the input name as first_name.

           

          Correction:

          CBES needs to correct the input fields name of the templates, so that the validation message contains proper name.

           

          cc - Samir Nishant.Kondapaneni 

          Show
          mohd.belal Mohd Belal (Inactive) added a comment - Hi, The validation message showing in case of HTML validation error follows following pattern: We are fetching the previous element of the input field to get the label name and if present showing the same in error message. If the previous html does not contains any html values, then we are fetching the name of input field to add to the validation message. In case of CBES document which is present in below url: https://dmsstage.workterra.net/candidate/document-review?param1=53801e8f11a267708640615176824ee0&param2=9f7c530735a71ea92f05432461b92006&param3=aadb3bfa6e9dd692c1b3504a33468b0b&param4=7cb74ae1b7e8246bfee203a9b89afadd&param5=4438307d31c6c3be025c573da2ee9667&param6=3c1a780c78acc6ae4283fbf5fbfd7fcb&param7=b49400ab42ff8edc80fd3a54b208fcea&param8=4438307d31c6c3be025c573da2ee9667   There are some inputs where the label is attached before the input, in that case the error message is coming accurate. Example is:  Main Phone# For some inputs like first_name , the label is not present and the input name is  first_name,   due to which the error message contains the input name as first_name.   Correction: CBES needs to correct the input fields name of the templates, so that the validation message contains proper name.   cc - Samir Nishant.Kondapaneni  

            People

            Assignee:
            mohd.belal Mohd Belal (Inactive)
            Reporter:
            mohd.belal Mohd Belal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 8h
                8h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 8h
                8h