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

@Robert H 

Here is the screenshot

 

 

 

@SAS21 

share the form screenshots where it's not coming

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

@SAS21 

Thanks, the Dictionary record looks the way it should be.

Please also provide the other screen shot I had requested:

"Can you provide a screen shot of the populated reference field that has no (i) icon, as well as how you have configured its Dictionary record?"

 

Regards,

Robert

@Ankur Bawiskar @Robert H 

This is the only configuration for the field at the record producer script end. 

if (producer.x_cyc_portal_requesting_on_behalf_of == 'Yes'){
current.u_req_raised_by = gs.getUserID();
}
SAS21_0-1744611938708.png

 

 

 

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