logo

The ConnectWise Control forum has moved to ConnectWise University! This forum has been locked and is in read-only mode. Click here for instructions on how to access the new forum.

Welcome Guest! You can not login or register.

Notification

Icon
Error

Options
Go to last post Go to first unread
stirling  
#1 Posted : Monday, December 4, 2017 10:43:24 AM(UTC)
stirling


Rank: Newbie

Joined: 10/26/2012(UTC)
Posts: 5

Thanks: 1 times
Hi, I would like to know if it is possible to make a Support generated code read only and prevent support staff from changing them? Our codes have been set to randomly produce 6 digit codes, but some support staff are shorting them to say 3 digits. Thanks.

Ben B  
#2 Posted : Tuesday, December 5, 2017 3:37:04 PM(UTC)
Ben B


Rank: Administration

Medals: Level 2: Lent a Helping Hand! 10 Thanks!

Joined: 10/2/2015(UTC)
Posts: 329

Thanks: 1 times
Was thanked: 71 time(s) in 63 post(s)
Originally Posted by: stirling Go to Quoted Post
Hi, I would like to know if it is possible to make a Support generated code read only and prevent support staff from changing them? Our codes have been set to randomly produce 6 digit codes, but some support staff are shorting them to say 3 digits. Thanks.


You could achieve this functionality by way of a very simple extension. All this does is disable the code input for support sessions; however, a support technician could get around this by updating the input's value via the browser console. Just create a new extension on your instance of Control and pop the following content into the specified files:

Manifest.xml:
Code:

<?xml version="1.0" encoding="utf-8"?>
<ExtensionManifest>
	<Version>1.0</Version>
	<Name>Disable session code input</Name>
	<Author></Author>
	<ShortDescription>Disable the session code input field</ShortDescription>
	<Components>
		<ClientScriptInitializer SourceFile="Initializer.js" MinProductVersionInclusive="6.3" />
	</Components>
	<Settings>

	</Settings>
</ExtensionManifest>


Initializer.js:
Code:

SC.event.addGlobalHandler(SC.event.InitializeTab, function (eventArgs) {
	var sessionType = eventArgs.sessionType;
	
	if (sessionType == SC.types.SessionType.Support && $('.EditInvitationCodeBox'))
		$('.EditInvitationCodeBox').disabled = true;
});


More information about how to create a custom extension is located here: https://docs.connectwise...ension_development_guide

Edited by user Wednesday, December 6, 2017 4:16:13 PM(UTC)  | Reason: Not specified

ScreenConnect Team
thanks 1 user thanked Ben B for this useful post.
stirling on 12/6/2017(UTC)
stirling  
#3 Posted : Wednesday, December 6, 2017 3:37:49 PM(UTC)
stirling


Rank: Newbie

Joined: 10/26/2012(UTC)
Posts: 5

Thanks: 1 times
Thanks Ben B, that has done the trick... Cheers
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.