Quantcast
Channel: Spiceworks Community
Viewing all articles
Browse latest Browse all 1893

JavaScript function wont work when setting value in SCCM 2012 OSD

$
0
0

In my deployment I have a prompt that ask the technician what container the computer should go into. My value is set as ADOU


, but its not reading my function/script correctly and processing it as an output. I am not sure what I am doing wrong.

My script is below. Starts at Line 310


HTML
function ADOU1() {var myVal = document.getElementById("ADOU").value;var outPut = "";switch (myVal) {case "1":outPut = "OU=Administrative,OU=Workstations,DC=imo-online,DC=com";break;case "2":outPut = "OU=Development,OU=Workstations,DC=imo-online,DC=com";break;case "3":outPut = "OU=External,OU=Workstations,DC=imo-online,DC=com";break;case "4":outPut = "OU=IT,OU=Workstations,DC=imo-online,DC=com";break;case "5":outPut = "OU=Restricted,OU=Workstations,DC=imo-online,DC=com";break;case "6":outPut = "OU=Sales,OU=Workstations,DC=imo-online,DC=com";break;case "7":...

Viewing all articles
Browse latest Browse all 1893

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>