Edit Lockdown

I
IK
veranet2025

Hello dear SOTI users,

Is it possible to add a script to the Kiosk screen as a button? We would like the user to be able to manually trigger the script whenever needed.

I would appreciate any insights or recommendations from those who have experience with this setup.
Thank you in advance.

4 days ago
SOTI MobiControl
ANSWERS
RS
Rafael Schäfer
4 days ago (edited 4 days ago)

Yes, you can.

I just tried to remove everything not needed from our side but i think you get an idea of it, so you can use something like this:

<form action="#">
        <p id="anyIDforthisparagraph"><input id="submit" type="submit" value="TEXT of the Button"></p>
</form>
		
<script>
        function writeIni() {
            var request = new XMLHttpRequest();
            let js_command = `HERE comes your script you would use in Soti`;
            var encodedScript = encodeURIComponent(js_command);
            request.open("GET", "mcscript://" + encodedScript);
            request.send();
        }
</script>

If you have 2026.x.x and a XSight license, i think it's even easier to do this as you don't need to do it in the code directly.

U
UTMOD@SOTI
yesterday

Hi IK

Good day

Thanks for posting on SOTI Pulse. Thanks Rafael for your helpful responding to the post

If the below response helped please mark the post as solution. Also, feel free to reach out if you need clarification or have any follow-up questions.

Incase of any further concerns, please don't hesitate to reach out.

Have a great day ahead

Kind Regards

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |