Hide a button

Sort:
You are not authorized to post a reply.
Author
Messages
Angela Collins
Basic Member
Posts: 20
Basic Member
    I added a button on AP90.1 for an image of the invoice.  Some process levels do not have images.  I have been hiding them with lawForm.getFormElement("push3",i).style.visibility="hidden";.  The problem is that the frame of the button is still there.  There was a string from 2009, but the person had the same issue.
    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member
      I remember John Henley posted this a while back.

      var objButton = lawForm.getFormElement("push3")
      objButton.value=""
      David Williams
      Angela Collins
      Basic Member
      Posts: 20
      Basic Member
        The problem I have is that I can get the the trace of the button without a description or a faint button with without a description.
        John Henley
        Senior Member
        Posts: 3348
        Senior Member
          Use:
          lawForm.getFormElement("push3",i).value = ""
          Thanks for using the LawsonGuru.com forums!
          John
          techguru
          Basic Member
          Posts: 5
          Basic Member
            Hi Angela,

            Use the following:

            // if you know the item nbr, then use this to hide the button

            document.getElementById("_f83").parentElement.style.visibility = "hidden"

                                    OR
            // if you know the item id, then use this to hide the button.
            var objButton = lawForm.getFormElement("push3")
            objButton.parentElement.style.visibility = "hidden"


            Let me know if you need more help!!
            Tech Guru.

            You are not authorized to post a reply.