4 Replies Latest reply: Jul 16, 2012 8:44 AM by Michael Santos RSS

How to hide contact fields (duplicates)

Gordi NameToUpdate

I am attempting to find the setting where I can hide the "First Name" "Last name" and "Email Address" fields from the first section of the "New incident" screen.  The above mentioned fields are located in the "Contact Information" section and there is no need to display it two times.

 

Is there a way to hide these values from the top of the form (see red highlight in the screenshot)?

 

FootPrints 10.0.2

Screen.jpg

  • 1. Re: How to hide contact fields (duplicates)
    Michael Santos

    Gordi,


    When you upgrade to version 11.x, you will be able to use the new Form Designer to remove those fields from the top section, as well as add any other fields you want up there.

     

    In version 10.x and prior, you can use field headers found under Admin|Workspace|Field Maintenance to accomplish the same.  Add this field header on the first field you have:

     

     

    <script language="Javascript" type="text/javascript">

    document.regform.First__bNameQQQQQQ2nd.style.display = "none";

    document.regform.Last__bNameQQQQQQ2nd.style.display = "none";

    document.regform.Email__bAddressQQQQQQ2nd.style.display = "none";

    document.getElementById("userfield1_label").style.display = "none";

    document.getElementById("userfield2_label").style.display = "none";

    document.getElementById("userfield3_label").style.display = "none";

    </script>

     

    Make it so the options are like the following:

    fieldheader1.png

     

    This will hide the fields as well as their labels.

     

    ticketpage1.png

     

    Let me know if that helps.

     

     

    Michael

     

    Michael Santos

    Software Consultant
    BMC Software

  • 2. Re: How to hide contact fields (duplicates)
    Gordi NameToUpdate

    You're a magician
    Thanks!

  • 3. Re: How to hide contact fields (duplicates)
    Evans Martin

    There is a mrlocaldef that does this.  You’ll have to contact support as I don’t have my list at the moment.

     

    Thanks,

    Evans Martin

     

    ---

    Evans L. Martin, PMP

    Consulting Services

    Contractor to BMC Software, Inc.

     

    phone: 615-469-0333

    email: evans_martin_cw@bmc.com<mailto:evans_martin_cw@bmc.com>

     

    2202 N. Westshore Blvd

    Suite 650

    Tampa, FL  33607

  • 4. How to hide contact fields (duplicates)
    Michael Santos

    Well I'll be.... Evans is right.  There is an MRlocalDefs variable that can be added to the FootPrints\cgi\MRlocalDefs file to turn it off per workspace.  Add the following line above the last line of the file (1;):

     

    $NO_CONTACT_IN_GENERAL_INFO{workspace#} = 1;

     

    If you want to remove them from workspace 1, the line would look like:

     

    $NO_CONTACT_IN_GENERAL_INFO{1} = 1;

     

    For multiple workspaces, add a new line and just change the number.

     

    You can choose to use the field headers or this variable.  Whichever is easier.

     

    Michael

     

    Michael Santos

    Software Consultant
    BMC Software