I have no idea what I'm doing but I'm told this should work but doesn't.
I am using Acrobat X on a Windows 7 pro machine and I'm trying to create a custom stamp that works exactly like one of the stock dynamic stamps. I created a stamp, saved it as a PDF then added a text field. As the definition for the text field, I cut and pasted the "calculated data" definition from a stock stamp. It's supposed to grab the log-in name from the computer and add the time and date. All I get is the time and date - the name doesn't appear. The stock stamp works perfectly. Any clue what I'm doing wrong? The script from the stock stamp is as follows:
event.value = (new Date()).toString();
AFDate_FormatEx("h:MM tt, mmm dd, yyyy");
event.value = "By " + ((!identity.name || identity.loginName != (event.source.source || this).Collab.user) ? (event.source.source || this).Collab.user : identity.name)
+ " at " + event.value);