Not able to to call getDisplayBox

AnketA
Tera Contributor

Hello,

 

I am trying to use getDispalyBox methods try to call it using object g_form but its not showing in my PDI could anyone please help
 
The only method starting from 'D' getting suggestion is "getDecimalValue()"
Using washington Dc version
 
Thanks in advance
 
 
1 ACCEPTED SOLUTION

@AnketA : You can type method name  as  "g_form.getDisplayBox('your variable name').value;"  in your code.  From my experience, there are many such cases like some undocumented methods in search however they are working as per backend configuration.  So I would suggest that type method name in your code even though it is not available in search and check if works as per your requirement. 

Hope it helps.

Please mark my answer as helpful/accepted if it helps.

Regards,

Priyanka Salunke

View solution in original post

6 REPLIES 6

SN_Learn
Kilo Patron
Kilo Patron

Hi @AnketA ,

 

Check with

g_form.getDisplayBox

 

If it is not coming up then I think it is due to the reason that Servicenow IDE is not able to get that API.

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

Priyanka_786
Tera Guru
Tera Guru

@AnketA :  This method  is still mentioned in ServiceNow docs for Washington Release. I think ServiceNow has not documented it that's why if you search in glide form it will not be visible.

 

Priyanka_786_0-1722955763955.png

Hope it helps.

Please mark my response as helpful/correct if it helps.

Regards,

Priyanka Salunke

Thanks priyanka is check it its in documentation but not able to call in clientscripts

@AnketA : You can type method name  as  "g_form.getDisplayBox('your variable name').value;"  in your code.  From my experience, there are many such cases like some undocumented methods in search however they are working as per backend configuration.  So I would suggest that type method name in your code even though it is not available in search and check if works as per your requirement. 

Hope it helps.

Please mark my answer as helpful/accepted if it helps.

Regards,

Priyanka Salunke