Ok i have this script in my Onload function.
function XDocument::OnLoad(eventObj)
{
var objWscript;
//Pull the info from the machine
objWscript = new ActiveXObject("WScript.Network");
//Combine the login to the hidden text box.
XDocument.DOM.selectSingleNode("//dfs:myFields/dfs:dataFields/d:ReportInfo/@Login").text= objWscript.UserName;
}
Im trying to get a textbox to autofill with the user sign in name. It does just that and works fine until they do a search/query or clicks on new form. It then turns blank and no longer has the users name in that spot. I would like it to have it at any time that name will be in the box. So if they open the IP and starts to add a file it will auto fill and if they query and then click on new record it will then also autofill.