I'm trying to find a way to modify DEPNotify so that a text field is pre-filled. Specifically, I'm using the DEPNotify Starter script here: https://github.com/jamf/DEPNotify-Starter
The first text field is asking for the Computer Name. I want to prefill the text box with the last 8 digits of the Macs serial. Like this:
-1234ABDC
I have the code to grab this:
serialNumber=$( system_profiler SPHardwareDataType | awk '/Serial Number/ { print $4; }')
shortSerial=${serialNumber: -8}
DEPNotify starter supports placeholders but when the user clicks into the field the placeholder disappears. Anyone know of an easy way to get that text to stay?
