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

Tommy Jensen
Giga Guru

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.

23 REPLIES 23

Ankur Bawiskar
Tera Patron
Tera Patron

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

https://community.servicenow.com/community?id=community_question&sys_id=40ebef89dbfa67c01089e15b8a96...

https://community.servicenow.com/community?id=community_question&sys_id=451a0fbedba877c02be0a851ca96...

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

No the issue is not fixed. I have tested in both Madrid and New York.

Omkar Mone
Mega Sage

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

Yes but the issue is STILL not solved in New York. I have tested in both Madrid and New York.