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

Great, thanks for that! Good to know about these properties!


This is great. Is there a way we could do this with a catalog form UI script? I am looking for a way to do this for a catalog form, but not do this globally.  How would I set this property ( glide.ui.reference.readonly.clickthrough ) on that field; could i use g_form to call and set this property?

Daniel Borkowi1
Mega Sage

Use readonly_clickthrough=true attribute in Dictionary for dedicated fields.

E.g. in advanced Dictionary view:

find_real_file.png

Bingo. This should be the accepted answer.

Maybe its because the Accepted answer is in 2016, limited attributes were available then 😁. And I am glad to see @Daniel Borkowi1 answer here!

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