- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2023 02:21 AM
I have a custom UI action (button) called 'Create bulk changes' on the change form. So my requirement is to show the popup to mention how many change requests should be created (number) when the user clicks on the 'Create bulk changes' button. I am facing difficulty since I need to implement this in the workspace.
Can someone help me to implement this scenario?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2023 11:43 PM
Hi Hemanth,
How can I restrict the user to enter only numeric values in popup? below is my script which is working fine except this numeric value restriction.
UI action:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2023 04:07 AM
Hi @Mounika Tungala ,
You can use regex
after you get the prompt
var onlyNumeric = /^[0-9]*$/; //allow only numeric
if (!onlyNumeric.test(reason)) {
alert("Enter only numeric");
}
Accept and hit Helpful if this resolves.
Thank you,
Hemanth
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2023 04:26 AM
Hi @Mounika Tungala ,
Did you try prompt like
var num =prompt("enter how many change request to create");
num would give what user enters to the pop up box
the only limitation here is if pop blocker is enabled on the user browser this wouldn't work as expected.
Thank you,
Hemanth
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2023 01:53 AM
Hi Hemanth,
Thank you for your response. Can you please mention the steps/code to achieve this? I don't have any idea about this popup as I am new to the workspace.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2023 03:52 AM
Hi @Mounika Tungala ,
Create a ui action as below and this would take input and you can get what input is entered for your further logic.
Result :
Please mark correct if it helps.
Thank you,
Hemanth
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2023 11:11 PM
Hi @Hemanth M1
Thank you for providing the screenshots. There is a small change in requirement that we are not using workspace anymore. We have show this same popup in native ui on change form with the click of Button/UI action. I have tried the same approach abut the popup is coming in Native UI. Will it work without creating UI page?