Title: Difficulty hiding/showing tab dynamically in UI Builder

KimberlyR830277
Tera Contributor

Olá 

Description: I am building a page in UI Builder that contains tabs and two forms. The first form is visible to all users. The idea is that when a user selects a specific option in a choice field (for example, a value like “Licitação”), a corresponding tab should appear dynamically. If the user does not select this option, the tab should remain hidden.

The issue is that when I try to use a script in the Hide component property of the tab, the field value is not returned correctly. Because of this, the tab does not appear as expected.

Question: What solutions or documentation can I consult to understand if it is possible to configure dynamic tab visibility in UI Builder based on choice field values? Is there a recommended way to ensure that the field value is correctly returned by the Data Resource so the script works?

1 REPLY 1

Tanushree Maiti
Kilo Patron

Hi @KimberlyR830277 

 

Refer: UI Builder - Component Visibility Logic

UI Builder - Controlling the visibility of components

https://www.servicenow.com/community/developer-forum/ui-builder-input-and-button-functionality/m-p/2...

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: