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

          mohd.belal Mohd Belal (Inactive) created issue -
          mohd.belal Mohd Belal (Inactive) made changes -
          Field Original Value New Value
          Description In HTML document:
           # Validation error is showing id's of input fields which needs to replaced by field names.

          https://careerbuilder.atlassian.net/browse/CBESCD-1224
          In HTML document:
           # 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] [~NishantK]
          mohd.belal Mohd Belal (Inactive) logged work - 28/Nov/19 09:48 PM
          • Time Spent:
            8h
             
            <No comment>
          mohd.belal Mohd Belal (Inactive) made changes -
          Status To Do [ 10000 ] In Progress [ 3 ]
          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  
          mohd.belal Mohd Belal (Inactive) made changes -
          mohd.belal Mohd Belal (Inactive) made changes -
          Resolution Done [ 10000 ]
          Status In Progress [ 3 ] Done [ 10001 ]
          mohd.belal Mohd Belal (Inactive) made changes -
          Remaining Estimate 8h [ 28800 ] 0h [ 0 ]
          Time Spent 8h [ 28800 ]
          Worklog Id 214949 [ 214949 ]
          Transition Time In Source Status Execution Times
          Mohd Belal (Inactive) made transition -
          To Do In Progress
          4d 4h 19m 1
          Mohd Belal (Inactive) made transition -
          In Progress Done
          16h 25m 1

            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