How do I make a Reference field Read Only but keep the 'Info' button?

Wayne Richmond
Tera Guru

I am putting a Reference field on a form to another record. I don't want people to edit the field but I want them to be able to click the 'Info' so they can view / go to the record.

Read Only:

ro.png

Non-Read Only:

non-ro.png

I've tried making the field Read Only via a Client Script and a UI Policy, both get rid of the Info button. Any ideas?

1 ACCEPTED SOLUTION

Akash4
Kilo Sage

Hi Wayne,



Create a UI Policy on the reference field that you wanted to make as 'read-only'. Then, set the System Property "glide.ui.reference.readonly.clickthrough" to true.


This will allow you to access the Info button in read-only mode.



find_real_file.png



If you got the answer, please dont forget to mark this as 'Correct Answer', thank you.


View solution in original post

21 REPLIES 21

Hello Daniel , 

This solution works well with all the reference fields.Not sure how to make it work for LIST Reference fields, where I would like to access the 'i' button on a read only List reference field.Attached screen shot for reference

UdayaBharaM_0-1741786278188.png

 

Alan So4
Tera Contributor

Anyone know why the default of this property is false?  I think in most cases, people still want to refer to the information even though a case is closed.

Don't really know it, but in my opinion it is better to grant less rights as default than too much rights. 

I agree.  However, the info button is simply a preview and link to the corresponding item.  Whether one can access the information still depends on access control.  Is it correct?

Yes that's correct. If a ACL will not allow to see a information, than the Info-Button will not show this. FYI you see the sys_popup view of the records form with this Button.