Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How do I limit visibility of sidebar component

gjz
Mega Sage

I've created a page collection and added it to the sidebar of my workspace.  The data in the page collection should only be displayed if the record comes from the SC_TASK table.  How can I control visibility for one specific icon?  I want the others to display.

 

icon visible.png

3 REPLIES 3

lauri457
Tera Sage

You use the controller to pass values that can be used in the variant conditions. The component will only show icons for valid pages

Screenshot 2026-04-07 111306.png

gjz
Mega Sage

lauri457 is only part of the answer - I still had issues with the limit using just her instructions.  I found some instructions (I don't remember where) that stated you need to create a Screen Condition.  To do that:

1. In UIB with the page open, click Settings. 

gjz_0-1776283168895.png

2. Click Open Records > Page Collection.  This will open UX Extension Point in the core UI.

gjz_1-1776283248906.png

3. In the UX Screens related list, select the screen name where you want the condition.  This opens UX Screen in core UI.

4. Add your condition.

gjz_2-1776283340226.png

 

What I really did was type sys_ux_screen.list in the navigator, then selected the screen I was working on.  Two clicks vs. four.

I'm not sure if it works because I added the Screen condition or if it works because I have a combination of the Screen condition and the page condition like lauri457 recommended, but it works.

Happy to hear that you have it working but I would note that [sys_ux_screen] is the variant record so the conditions in the screen condition field are the variant conditions in ui builder. You should be able to confirm this by navigating to the variant settings in ui builder now that you have it working. Also if you look at the view parameter from the url when you are in the variant settings route in ui builder you can see that it is the sysid for the [sys_ux_screen] record

 

You are just editing the record directly in a form. See this screenshot of the ux screen record of my last post

Screenshot 2026-04-16 095433.png

You could also navigate directly to the record from that context menu in your second screenshot by clicking variant record instead of page collection.