Make reference icon available for read only fields on form

Krischan
Giga Guru

can someone advice me how I can achive this? I got a form with several read only fields but i want to make use of the reference Icon. Is there a way to get this done?

 

regards

 

Christian

1 ACCEPTED SOLUTION

Hi Christian,



Check for the system property and make it true



glide.ui.reference.readonly.clickthrough



This will enable the hover icon for readonly reference fields.


View solution in original post

10 REPLIES 10

marcguy
ServiceNow Employee
ServiceNow Employee

When you say the reference icon, do you mean the magnifying glass? Just wondering what you want to do with it as it's used to select a different value to enter into the field, if it's read-only then do you just want to be taken to the list of records in that referenced fields table? If that is the case you could probably do it with a custom icon/ui macro and add it via field_decorations and not modify the magnifying glass in any way as by default it would try to populate that field if you use that.



Then you could copy a UI Macro such as 'show_related_tasks' and use that to be transformed to the list of records on that table?


field_decorationsUI Macro name list, separated by semicolons (";")most fieldsSimilar to ref_contributions, causes the named UI Macro to be invoked when the field is rendered on a form.

reference.png


This one is only availble for the admin .. I don't need the magnifier since I don't want it to be changed but for the supporter it's interesting to hover here and get more information about the referenced task.


Hi Christian,



Check for the system property and make it true



glide.ui.reference.readonly.clickthrough



This will enable the hover icon for readonly reference fields.


Thanks... that worked !