ESS Hiding Supplemental Address Tab

Sort:
You are not authorized to post a reply.
Author
Messages
KJBULLS
Basic Member
Posts: 4
Basic Member
    Hello,

    I am trying to hide "Supplemental" address tab in ESS under "Personal Changes". I went to modify empaddress.htm and tried to hide the code wherever "Supplemental" was referenced. It hides it, but then the "Home Address" change submission doesn't work. It seems like I am not commenting out the right code. Has anyone ever done this? I thought it should not be that hard to hide a tab. Any ideas?

    Thanks,
    KJ
    BarbR
    Veteran Member
    Posts: 306
    Veteran Member
      It's not hard to hide a tab in EMSS, or fields, however it does become a problem if the fields are used to update a form/table. You'd have to pass the right values to the supplemental address update since they are no longer coming from EMSS.
      KJBULLS
      Basic Member
      Posts: 4
      Basic Member
        Can we not pass Blanks to supplemental address if the tab is hidden? Sorry am very new to modifying ESS pages.
        Margie Gyurisin
        Veteran Member
        Posts: 538
        Veteran Member
          This is what we did.....

          Supplemental Address

          %webdir%\lawson\xhrnet\empaddress.htm

          Add paragraph with message about not being able to edit supplemental address information and add visibility:hidden to supplemental address form
          // Supplemental address tab

          var tab1Html = ''
          + '

          You cannot edit supplemental address information.

          '
          + '<form> name="supplementalform" style="padding-top:10px; visibility:hidden">'

          BarbR
          Veteran Member
          Posts: 306
          Veteran Member
            In answer to the question about passing blanks to the supplemental fields: It is my understanding that the normal HR11 (or HR511) address update process will put the Home address fields into the Supplemental address fields unless entries are made to the Supplemental address fields to override that process. ESS will need to match that update process, and I don't think blanks would work.
            KJBULLS
            Basic Member
            Posts: 4
            Basic Member
              Thanks Margie. I tried your code and now in ESS, I still see the "Supplemental" tab , but it displays the message 'You cannot edit supplemental address information'. However, I still see the "Update" button and when I test to Home Address tab and change the address and hit Update, it throws me errors like "saddrform.suppphonenbr" is null or not an object.

              Do I need to hide anything else? What supplemental address information does it pass on HR11 if you have hidden the form? Thanks for your help
              KJBULLS
              Basic Member
              Posts: 4
              Basic Member
                Hi Margie,

                I am able to hide my "Supplemental" tab! Thank you so much for your help. I also made the word "Supplemental" disappear so that the users are not able to see the tab at all by modifying getSeaPhrase("SUPPLEMENTAL","ESS") to getSeaPhrase(" ","ESS"). Now in HR11 the same values get passed from "Home Address" tab. Thanks so much! I works great!

                Margie Gyurisin
                Veteran Member
                Posts: 538
                Veteran Member
                  Glad I could help. I am going to pass on your additional step to our IT dept to see if we can do this as well.

                  Thank you for sharing your solution.
                  You are not authorized to post a reply.