How to enable the OOB info icon next to a custom field which is of reference type

SAS21
Tera Guru

Have a custom field 'Requester on Behalf' which is of reference type pointing to User table. How to enable the out of the box information icon that will preview the user's details ? 

3 ACCEPTED SOLUTIONS

Hello @SAS21 ,

 

This is a read-only field. That is the reason why the icon is not visible. Make the field editable and the icon will appear.

Or you can add the following attribute to the Dictionary record of this field:

readonly_clickthrough=true

 

Regards,

Robert

View solution in original post

@SAS21 

since the field is readonly the i icon won't be show. that OOTB behavior

make this property to false: 'glide.ui.reference.readonly.clickthrough' -> this will be a global change

add this in the field dictionary attributes if you want to show that

readonly_clickthrough=true

Reference field icon 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

@Robert H This works. Thank you for the help!

 

Its read only at the dictionary level. Its in the screenshot i have provided. 🙂 

View solution in original post

19 REPLIES 19

swapnali ombale
Kilo Sage

Hi @SAS21 

 

To enable the OOB info icon next to a custom reference field in ServiceNow, you need to ensure the reference field is configured correctly with the tree_picker=true attribute in the Dictionary entry. This will allow the "i" icon to appear, and clicking it will open the reference record for more information. 
 
Here's a more detailed breakdown:
  1. Navigate to the Table: Go to the table where you want to add the custom reference field. 
     
  2. Open the Field Dictionary: Find the field you created and double-click it to open the Dictionary entry. 
     
  3. Add the Attribute: Under the "Attributes" section, add a new attribute with the following values:
    • Name: tree_picker
    • Value: true 
       
  4. Save the Changes: Save the Dictionary entry. 
     
  5. Verify on the Form: Refresh the form and you should see the "i" icon next to the reference field. Clicking it will open the related record for viewing. 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Hi @swapnali ombale  tried the above its not showing

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @SAS21 

 

If I’m not mistaken, the i icon doesn't work at the portal level, even though the field is of reference type.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @SAS21 

did you check my response?

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************