Take snapshot of the form on click of a button

Hari1
Mega Sage

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

12 REPLIES 12

@Shaqeel

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?

Hari1_0-1722858795399.png

 

 

@Shaqeel 

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!

@Hari1 

 

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