What are tabs2_list in servicenow

Preethi26
Tera Contributor

Hi Team,

 

Can you let me know what is tabs2_list used in UI action?

2 REPLIES 2

Robbie
Kilo Patron
Kilo Patron

Hi @Preethi26,

 

"tabs2_list" is the ID and handle for the related lists tab section.

A good use case example would be to get the list of all the headers of the related lists.

Check the below screenshot (using the developer tools).

 

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.

 

Thanks, Robbie

 

Screenshot 2024-04-02 at 14.17.14.png

 

 

Maddysunil
Kilo Sage

@Preethi26 

The window.location.hash property in JavaScript is used to set or retrieve the anchor part of a URL, commonly referred to as the "hash" or "fragment" identifier. This identifier usually appears after the '#' symbol in a URL.

When you set window.location.hash to a value, you're essentially changing the hash part of the current URL. So, window.location.hash='#tab2_list' sets the hash part of the URL to '#tab2_list'.

Here's what happens when you set window.location.hash='#tab2_list':

  1. Update URL: The hash part of the URL is updated to '#tab2_list'. If the URL was previously something like https://example.com/page.html, it will become https://example.com/page.html#tab2_list.

  2. Fragment Identifier: The string 'tab2_list' becomes the new fragment identifier. This can be used to identify a specific section or content within the page. In many web applications, this is used in conjunction with JavaScript to trigger specific actions or behaviors based on the fragment identifier.

Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks