No elements to display in service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2023 08:03 AM - edited 01-08-2023 08:04 AM
Hi Experts,
I'm trying to add custom form on service portal using Form widget which is available OOB. But after adding table it is throwing message "No elements to display".
Can anyone help on this.
Thanks
Arunkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2023 08:46 AM
Hi @Arun98,
You have to cloned the OOTB form widgets. Modify it as per your need and add it to your page.
Form widgets example -
If you want to see how it looks. then open any incidents in service portal.
https://instance-name.service-now.com/sp?id=form&table=incident&sys_id=add_incident_sys_id_here
and hit enter
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2023 08:49 AM
Thanks Sagar for response,
I did the same, but for other tables it is showing the fields but for only one table it is showing "No elements to display"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2023 08:51 AM - edited 01-08-2023 08:52 AM
Hi @Arun98,
May be service portal view is not configured for your custom table. Hence it shows "No elements to display".
Try this -
https://instance_name.service-now.com/sp?id=form&table=custom_table_name&sys_id=sys_id_of_record
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2023 08:58 AM
@Arun98 the form widget tries to read table and sys id from the url. In the screen shot you shared it's the page designer page so there is no table and sys id in url. Hence try below as suggested by @Sagar Pagar
https://instance_name.service-now.com/sp?id=your_page_id&table=custom_table_name&sys_id=sys_id_of_record
ServiceNow Community Rising Star, Class of 2023