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

Simple list widgets with no records are showing in portal even when "Show even when empty" box is unchecked

patricklatella
Mega Sage

I must be missing something...I've got a couple simple list widgets on a portal, I don't want these to appear if there are no records.  I have left the "Show even when empty" box in the instance options unchecked...but when I impersonate a non-roled user, they still appear.  Any help is why this is happening?  Thanks!

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

patricklatella
Mega Sage

Turns out this is a known error that should be fixed in Madrid,

Here's the KB with workaround

https://hi.service-now.com/kb_view.do?sys_kb_id=e83891b4db829380852c7a9e0f96196b

 

View solution in original post

6 REPLIES 6

Description

On Service Portal if you have configured a simple list widget with the always_show option set to false, the widget still appears even if there is no data to display.

Steps to Reproduce

 

  1. Create a new portal page from page designer and add the "simple list" widget
  2. Open the widget instance in platform view and set the following settings:

    Table: Incident
    Conditions: 

    Assigned to is (dynamic) Me

    AND

    Caller.Active is true

    Display field: Short description
    Link to this page: form
    Additional options, JSON format:

    {
        "always_show": {
            "value": "false",
            "displayValue": "false"
        }
    }

    3. Impersonate Abel Tuter (ensure there are no incidents assigned to Abel) and navigate to the portal page created in step 1 (https://<instance_name>.service-now.com/sp?id=<id_of_page>)

    The simple list widget shows even if there are no records returned
    Note: if you set the always_show value to empty string, this works as expected

Workaround

Manually remove the always_show property from the Additional JSON options in the sp_instance record.