ATF - FAILURE: g_form is not defined. A valid form must have g_form defined

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2019 11:36 PM
Have anybody found a solution for this error
FAILURE: g_form is not defined. A valid form must have g_form defined
I am getting this error in the test step "Open a Form (SP)". I open a custom portal with a custom page that contains 3 custom widgets.
I have tried to setup g_form with code like this
$scope.$on('spModel.gForm.initialized', function (e, gFormInstance) {
g_form = gFormInstance;
}
but the event spModel.gForm.initialized is never fired.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2019 11:43 PM
Hi Tommy,
This is an known issue which is fixed in London release.
https://hi.service-now.com/kb_view.do?sysparm_article=KB0681668
check below links as well
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2019 01:26 AM
No the issue is not fixed. I have tested in both Madrid and New York.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2019 01:40 AM
Hi
This is the latest KB for this particular issue -
https://hi.service-now.com/kb_view.do?sysparm_article=KB0749086
Let me know if it helped.
Regards,
Omkar Mone

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2019 02:02 AM
Yes but the issue is STILL not solved in New York. I have tested in both Madrid and New York.