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

Midhun1
Giga Guru

Hi,



It should be reference field("Field type Reference") then only it will come make that field reference to that RFQ table.


Hi Midhun,



I'm not sure what you mean. I may not have been clear in my request. The field is already a Reference field. I want people to be able to click the Info button to view the record the field is referencing but I want to keep that field Read Only. I don't seem to be able to do both things easily. Thanks for your reply


Anurag Tripathi
Mega Patron
Mega Patron

Hi Wayne,



I am on fuji and it works the way you expect for me using


g_form.setReadOnly('XXXX', 'true');



Also, i checked on task form and not on catalog.


-Anurag

Thanks. That's how I've done it but it doesn't work for me on Geneva P6.