- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2021 06:13 PM
is g_form.getFieldNames deprecated? is there another OOB workaround for to get all field names in a client script?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2021 07:46 PM
getFieldNames is supported on portal not on native.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2021 06:37 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2021 07:00 PM
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.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2021 07:46 PM
getFieldNames is supported on portal not on native.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2022 08:05 AM
@Pranesh072 When I click on that link, it just takes me to "Now Platform Capabilities". Did it used to go somewhere more targeted? Thanks.