TypeError: api.data.gform.setValue is not a function

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 06:25 AM
Hi,
I'm doing a development work on UI Builder and I stumbled on this issue.
TypeError: api.data.gform.setValue is not a function
As per documentation we can setValue for the ui builder form via api -api.data.<data_resource_id>.setValue(Object payload)
However its throwing this error "TypeError: api.data.gform.setValue is not a function" when I do a try catch to check why it was not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 07:09 AM
Can you share your exact script?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 07:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 08:28 AM
Hi @Tadz ,
Try giving keywords in single quotes as well.
api.data.gform.setValue({'fieldName': 'short_description', 'value': 'short description'});
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 10:50 AM
I believe the function is `setFieldValue`
try: