Error "g_form is not defined. A valid form must have g_form defined" in ATF

venkata satish
Tera Expert

I am trying to open service portal home page using Open a Form (SP) in ATF. it is giving error  "g_form is not defined. A valid form must have g_form defined". How can I fix it.

Regards, 

Venkata Satish

6 REPLIES 6

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

looking at the official documentation, To use this step, you must have already opened a form using the Open a Form (SP) test step.

Could you please double check you are opening properly the form using the Open a Form test step?

Use this documentation for doing it:

Form test step: Open a New Form

If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thank you

Cheers

Any update on this?

If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thank you

Cheers
Alberto

Jace Benson
Mega Sage

Are you using the depricated widget for the form?  to find put, ctrl-right-click on the form as admin and note the name.  The new versions of the widgets have code specifically for ATF.

venkata satish
Tera Expert

I am trying to open portal page not form. May be it is not allowed to open page in service portal.

 

Regards,

Venkata Satish