getDisplayBox Method

naresh1019
Mega Expert

1) I had a custom field reference field referring to sys_table.

2) i wanted to create a alert with the field value selected in the reference field.

3) It was returning the sys_id.

4) i used the following code.

5) The second alert was giving me the exact value fow what i was looking.

6) My question is when i typed "g_form." in the options i could see "getvalue" but not "getDisplayBox".

7) is this method deprecated, what is the reason.

😎 if no how many such methods are there,

find_real_file.png

6 REPLIES 6

lakshminarayan4
ServiceNow Employee
ServiceNow Employee

hi,


the script editor of servicenow is not displaying the method. But you can use it. it works fine.



Thanks


- YLN


Harsh Vardhan
Giga Patron

It's not deprecated. i think servicenow has not documented it that's why if you search in glide form it will not be visible.



for more details about getDisplayBox() please go through the link below. thanks to @chris jones for this blog



The Shrewd Underdog  


Hi Harsh ..can i get yur whaats app num/mail id.


here is my LinkedIn profile. please inbox me there. i continuously active there. happy to help you



https://www.linkedin.com/in/harsh-vardhan-0a81bb63/