No elements to display in service portal

Arun98
Tera Contributor

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".

 

Arun98_0-1673193774488.png

 

Can anyone help on this.

 

Thanks

Arunkumar

 

5 REPLIES 5

Sagar Pagar
Tera Patron

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

The world works with ServiceNow

Arun98
Tera Contributor

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"

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

The world works with ServiceNow

jaheerhattiwale
Mega Sage
Mega Sage

@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

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023