How to specify the form view to display a record selected on a data table from instance definition w

Michael Searle
Tera Guru

I couldn't fit the full subject in the subject field thus I will specify the full subject here: I want to know how to specify the form view used to display a record on a Service Portal page through the form widget when the user clicks on a record in the data table from instance definition widget? 

Although I have explored options offered in both of the widget instances, including the HREF/URL fields available in both, I'm not arriving at the appropriate method or syntax to append the view=view_name URL parameter to the URL to cause the named to be used for record display.

By extension, I would like to specify the view name based on a value in the record.


1 ACCEPTED SOLUTION

Robert H
Mega Sage

Hello @Michael Searle ,

 

This widget uses a hard coded view ("sp" / "Service Portal") when navigating to the record form. There is no way to specify a different view, unless you are willing to clone this widget and modify the code accordingly.

 

RobertH_0-1746645192848.png

 

As an alternative you could use the "Data Table from URL Definition" widget, which supports the view URL parameter, and passes it to the form being opened when clicking on a record.

 

For example: https://{instance}.service-now.com/sp?id=list&table=incident&view=ess

will open the Incident list in the Self Service view, and when the user clicks on one of the Incidents it will show in the Self Service view as well.

 

Regards,

Robert

View solution in original post

1 REPLY 1

Robert H
Mega Sage

Hello @Michael Searle ,

 

This widget uses a hard coded view ("sp" / "Service Portal") when navigating to the record form. There is no way to specify a different view, unless you are willing to clone this widget and modify the code accordingly.

 

RobertH_0-1746645192848.png

 

As an alternative you could use the "Data Table from URL Definition" widget, which supports the view URL parameter, and passes it to the form being opened when clicking on a record.

 

For example: https://{instance}.service-now.com/sp?id=list&table=incident&view=ess

will open the Incident list in the Self Service view, and when the user clicks on one of the Incidents it will show in the Self Service view as well.

 

Regards,

Robert