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

Kenneth Jones
ServiceNow Employee
ServiceNow Employee

Below is what you need to do to have the custom form view work in the workspace. Also, included is the link to the SN doc on ‘Control when the system displays a view’

 

  1. Create a custom form view (developer created a custom form view for the ‘Sys_user’ table)
  2. Create a ‘View Rule’ record. Make sure you are in ‘Global’ scope if your custom form view is on a table outside of your scope application.

   Note: Scripting your condition will give you more control over when the ‘custom form view’ will display for certain users.

 find_real_file.png

3. Create a UX Form View Rule record. Give the record a name, select your table (developer used the ‘sys_user’ table), then select your created ‘view rule’ for the ‘View’ field value. Then ‘Save’ the record. Once saved, the ‘UX View Rule Configurations’ related list will show.

 find_real_file.png

4. Create a ‘New’ UX View Rules Configuration record. Give it a ‘Name’ and then ‘Save’ the record. Once saved, the ‘Workspace View Rules’ related list will display.

 find_real_file.png

5. Click the ‘Edit’ button and search for your ‘View Rule’ and then select and move it into the slush bucket to the right and click ‘Save’.

6. Test your UX View Rule by impersonating someone that does not have the ‘Role’ needed to see the ‘Custom Form View’ via the workspace. Click on a list view and the record page should display/not display the custom form view based on your scripted view rule condition.