Service Operations Workspace Experience with UI Builder Customization Issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 07:38 AM
Hi Everyone
I am stuck on a issue and need your inputs/resolution for this.
On Service Operations Workspace - Change module when we click on 'Create New' button, create-change-request-page is opened and User can select the template/model and click on Next Button which closes the current tab and opens the New Change record with pre filled details.
Current Page :
My requirement is to skip the clicking of Next Button and directly redirect to next page when Template is clicked.
I've created a duplicate of the OOTB variant and tried this
1. I deleted Next & Cancel Button component in Button Container Component.
2. I added Event Handler on Card Base Container 1 to Execute - Client Script Close Tab and Execute -Client script on Next Button so that when card is selected the next button code executes.
The above configuration is closing the tab and opening change form but the pre-populated fields are not setting up properly.(I am clicking standard template but Type is being set as normal and sometimes it is setting up the previously selected template values.)
I am new to UI Builder so any input will be helpful.
Thank You in advance.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Labels:
-
UI Builder : Next Experience
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 07:55 AM
I think you need to keep the code for the "Pin/Unpin" script in the actions for when you click on card...that way the "Next Button" client script has the parameters you're looking for (this is why it is sometimes the same parameters as a previous template -- they're present, but not getting passed by the Pin/Unpin as you desire).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 10:34 AM
I am using the same client script that was used on OOTB 'Next' Button Event in the Event Handler
OOTB Next Button Click:
Card Selection Event click :
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 10:42 AM - edited 06-16-2023 10:44 AM
Yes, but you need the other one too (you need 3 events handlers for this, on the card selection click)
which is on the pin/update card:
keep that action (execute client script pin unpin card) at the top of the "events" you copied from the next button.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2023 11:47 PM - edited 06-19-2023 12:23 AM
Hi @jMarshal
I tried and It's always taking the default change model on any card click.
Also added Card Click client script so that the values for
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP