Is g_form.getFieldNames deprecated in Paris?

Linbergh1
Tera Contributor

is g_form.getFieldNames deprecated? is there another OOB workaround for to get all field names in a client script?

find_real_file.png

1 ACCEPTED SOLUTION
5 REPLIES 5

Chetan Mahajan
Kilo Sage
Kilo Sage

Hello,

I think there is no way to fetch all fields names in Client Script but you can get single field name by

g_form.getLabel('<field_name>');

 

If you get your Answer please mark Correct/Helpful.

 

Thanks

Allen Andreas
Administrator
Administrator

Hello,

Is this on the Service Portal or standard UI?

Per this documentation, which is noted up to Quebec, getFieldNames is still available, but isn't available on the portal. 

https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/build/service-portal/reference/cl...

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

@Pranesh072 When I click on that link, it just takes me to "Now Platform Capabilities".  Did it used to go somewhere more targeted?  Thanks.