Problem with Variables in stamps

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
Andiroid
User
Posts: 2
Joined: Fri Jun 14, 2019 6:22 am

Problem with Variables in stamps

Post by Andiroid » Fri Jun 14, 2019 6:28 am

Hey,

i have a problem with my stamps.
They were working totally fine but when I changed the logo the variables do not work anymore. Maybe someone can tell me my mistake?

I attache the new ones and the old. In my eyes there is no difference but when I add them to the ENU archive and use the stamps they dont work. Date and User stays the same. The old ones work. Variables are exactly the same :?: :roll:
Attachments
stamps.7z
(1.09 MiB) Downloaded 15 times
Last edited by Andiroid on Fri Jun 14, 2019 9:03 am, edited 1 time in total.

User avatar
Will - Tracker Supp
Site Admin
Posts: 6819
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Problem with Variables in stamps

Post by Will - Tracker Supp » Fri Jun 14, 2019 9:00 am

Hi Andiroid,

Thanks for the post - I'm not entirely sure why these aren't working, but can you please try altering the script to the following?

Code: Select all

event.value = (new Date()).toString();
AFDate_FormatEx("dd.mm.yyyy");
You can alter the date format to be whatever you'd like.

Cheers,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com

Andiroid
User
Posts: 2
Joined: Fri Jun 14, 2019 6:22 am

Re: Problem with Variables in stamps

Post by Andiroid » Fri Jun 14, 2019 9:04 am

I changed the attachments to 7z, thank you!

The second one is

if((identity.name != null) && !/^\s*$/.test(identity.name))
event.value = identity.name;
else
event.value = identity.loginName.replace(/\./g," ").replace(/\./g," ").replace(/\b(\w)/g,function(Word,cFst){return cFst.toUpperCase()});

You know something better?

User avatar
Will - Tracker Supp
Site Admin
Posts: 6819
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Problem with Variables in stamps

Post by Will - Tracker Supp » Fri Jun 14, 2019 9:21 am

Hi Andiroid,

I'm not sure why that wasn't working, but it appears to be after I change the date script; possibly because this resets the form. Can you please try using the following PDF (it's not a stamp collection, so you'll need to create a collection from it) and see if the date continues to update, and if the login name updates?
Stempel Will.pdf
(1.61 MiB) Downloaded 18 times
Cheers,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com

Post Reply