I have two fields:
1. managerUsername (populates as SERVER\gstdenis)
2. managerUsernameVALUE (desire to have it show up as gstdenis)
When the manager changes, the issue is that #1 is populated through a lookup rule. It comes in formatted as SERVER\newmanager. I need to remove the word SERVER\ so I can populate #2 with just newmanager. I find it's giving me a hard time at var server = "SERVER\". What am I doing wrong in Line 6 below?
$(document).ready(function(){ //When the Manager's Username Changes, Update Manager's Username VALUE var username = $('.managerUsername input').val(); var server = "SERVER\"; var newValue = username - server; $('.managerUsername input').on('change', function(){ $('.managerUsernameVALUE input').val(newValue); }); }); //close document.ready