Change Form View for custom Workspace via UI Builder

Luuk Vonk
Tera Guru

I have build with the UI Builder my own Workspace and now I want to add Cases, with a custom form view. I can't figure out how to change the default form view.

On the old workspaces this could be done with the Workspace View Rules but that is not working any more.

1 ACCEPTED SOLUTION

Thanks again you put me on the right track.

I was not able to change the fields you showed in your screen, but there where already parameters filled in.

The only thing I needed to do was adding a UX Page Property to my UX Application. The property was viewRuleConfigId and has the value of an UX View Rules Configuration record.

So I created an UX Form View Rule added that to the UX View Rules Configuration and added that sysID to the property viewRuleConfigId and it worked.

View solution in original post

5 REPLIES 5

Kirankumar Amba
ServiceNow Employee
ServiceNow Employee

You can create a new view named "Workspace" from Form Layout on platform and configure as per your requirement. UIB Workspace should pick the view from that layout since UIB by default tries to access "Workspace" view. Hope this helps!

Luuk Vonk
Tera Guru

Thanks Ambati, For my case that will not work, because that one already exists for another Workspace.

If you are configuring a Form/Record using a GlideForm databroker, it takes a "View" parameter. You can leverage that by passing a view param in the URL and reading that in View of GlideForm data broker as @context.props.view

find_real_file.png

 

find_real_file.png

 

This way, it is possible to pass any view already declared in the Form Layout as a URL param.

Thanks again you put me on the right track.

I was not able to change the fields you showed in your screen, but there where already parameters filled in.

The only thing I needed to do was adding a UX Page Property to my UX Application. The property was viewRuleConfigId and has the value of an UX View Rules Configuration record.

So I created an UX Form View Rule added that to the UX View Rules Configuration and added that sysID to the property viewRuleConfigId and it worked.