Take snapshot of the form on click of a button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2024 11:30 PM
Hi,
I have a requirement to take a snapshot of the incident/change/workspace forms on click of the button i,e we need to add a button on the form and on click of it. We need to get the snapshot of the form. Can we achieve this in servicenow.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2024 04:53 AM
Below are my questions
1. I am not able to find "Workspace experience>>Administration>>All config"
2. Can we use the above configurations for UI Builder?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2024 08:19 AM
As the document suggest we cannot use the below global variables in workspace. Please check the below note:
The workspace client scripting environment does not support the following global variables:
this, window, document
$, $$, jQuery, $j
angular
In general, accessing global is not behavior that should be relied upon. The client scripts should only access the registered objects i.e. documented client side methods within the scripting environment.
I also see that there is error when i run the above code suggested by you in UI Builder.
Error Message: Error while running Client Script "GlideScopedScript": ReferenceError: document is not defined"
Which says we cannot use document in UI Builder/ Workspace. Can you please suggest a workaround for this on how to use this functionality on the UI Builder/Workspace.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2024 12:57 AM
Sorry man, I have no idea.
***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.
***********************************************************************************************************************
Regards
Shaqeel