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
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.


Regards, Akash
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.

View solution in original post

21 REPLIES 21

I don't have a Geneva instance to try on, do you have any other instance on a different version to check if this is a version thing or something else?


-Anurag

We have Fuji P11 on our production instance. I've just repeated the same steps and get the same issue.


Midhun1
Giga Guru

Else you can add macro to that field.


Akash4
Kilo Sage
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.


Regards, Akash
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.

Bulls Eye Mate!!!


-Anurag