The CreatorCon Call for Content is officially open! Get started here.

Hiding a Field in the "My Approvals Service Portal Summary Page"

dmullinax
Mega Guru

My Record Producer (Service Portal Form) has this drop-down "Please select your chancellor." Drop down contains a list of people.
chanc_cab_001.jpg
chanc_cab_002.jpg

  • A script include pulls from the sys_user_grmember table, a list of people from a group "chancellor" and returns a json consisting of name and value pairs. The name includes the name of the cabinet member, and the sys_id contains the sys_id of the cabinet member's sys_id.
  • Catalog Client Script uses GlideAjax to populate the menu, using the name and value pairing.
  • On the back-end, that sys_id gets stored into a reference field.  The reference is sys_user.  To the business users who use the back-end record, they see the chancellor's name, but the table stores the sys_id.
  • My workflow uses that sys_id for the approval.

The problem I'm trying to solve:
When the approver clicks on "My Approvals", he's taken to a summary of the ticket.
He sees a sys_id in place of the cabinet member.
For example:
chanc_cab_003.jpg

We want the cabinet member's name to appear here instead of the sys_id.

 

Our goal is to remove this field from the "My Approvals Summary Page"...

WITHOUT

having to modify the sp_widget table.

 

We do not want to touch this.  We do not want to modify the Body HTML template or the Server Script.  No code updates here.

So far I have tried the following recommendations from CoPilot.  None of these work.

  1. In the attributes field of the data dictionary, add attribute "portal_hide=true."  This doesn't work.
  2. Setting up a display business rule.
(function executeRule(current, previous /*null when async*/ ) {

    if (gs.isInteractive() && gs.getSession().isLoggedIn()) {
        var isPortal = gs.getSession().getClientData('glide.ui.view') == 'sp';
        if (isPortal && current.getTableName() == 'x_losls_ogac_pe_document_transfer_request') {
            current.ogac_dcr_chancellor_cab_mem = '';
        }
    }

})(current, previous);​

I couldn't get this to work either.

 

1 ACCEPTED SOLUTION

M Iftikhar
Tera Sage

Hi @dmullinax,

 

To hide the Chancellor field (which currently shows the sys_id on the "My Approvals" summary page) without modifying the sp_widget table, you can control the visibility directly from the variable settings in the Record Producer. Here's how:

  1. Navigate to: Service Catalog > Catalog Definitions > Record Producers 

  2. Open your Record Producer that contains the Chancellor dropdown.

  3. In the Variables related list, click to open the Chancellor variable.

  4. Scroll to the Availability tab.

  5. Uncheck the "Visible on Summary" option.

MIftikhar_0-1759753157364.png

This will prevent the Chancellor field from appearing in the "My Approvals" summary view.

 

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.

View solution in original post

1 REPLY 1

M Iftikhar
Tera Sage

Hi @dmullinax,

 

To hide the Chancellor field (which currently shows the sys_id on the "My Approvals" summary page) without modifying the sp_widget table, you can control the visibility directly from the variable settings in the Record Producer. Here's how:

  1. Navigate to: Service Catalog > Catalog Definitions > Record Producers 

  2. Open your Record Producer that contains the Chancellor dropdown.

  3. In the Variables related list, click to open the Chancellor variable.

  4. Scroll to the Availability tab.

  5. Uncheck the "Visible on Summary" option.

MIftikhar_0-1759753157364.png

This will prevent the Chancellor field from appearing in the "My Approvals" summary view.

 

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.