Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Form Widget not working

yundlu316
Kilo Guru

I am trying to get the form widget to work, but it keeps showing Record Not Found.   When i pull in the Form Widget, I click on the hamburger icon and Open in Platform.   In there, I set the URL/HREF to the form that we want:

https://dev26822.service-now.com/fedhc/?id=form&table=x_81991_federal_hc_federal_onboarding&sys_id=-...

However, it shows as Record Not Found, what am I doing wrong?

1 ACCEPTED SOLUTION

sndangibbard
Mega Guru

For the URL option, no you do not enter anything into the HREF/URL field in the Widget Instance, the Form Widget doesn't use this attribute as far as I know


For the "Additional options" option you need to ensure you keep correct formatting of your JSON object, it should look like this



{


        "disableUIActions": {


                "value": "",


                "displayValue": ""


        },


        "showFormView": {


                "value": "true",


                "displayValue": "true"


        },


        "disableUIActions": {


                "value": "",


                "displayValue": ""


        },


        "page": "incident",


        "sys_id": "-1"


}


View solution in original post

6 REPLIES 6

sndangibbard
Mega Guru

Sorry David I had pages on the mind, of course it should be table and not page!



For the URL option, it requires that you don't have the Form Widget embedded in a custom page but link to the baseline form page from your custom page. For example on the /sp Index page add an Icon Link Widget. In the Icon Link Widget Instance


Type: URL


HREF/URL: /sp?id=form&table=incident&sys_id=-1



The Icon Link will now take the user away from the index page to a full page form.



I hope this makes things clearer!


Ahhh perfect, thanks!!