Skip to main content
Participant
October 4, 2024
Answered

Java-script in Stamp

  • October 4, 2024
  • 1 reply
  • 742 views

I need a java-script to print the current Document-Name

I trried event.value = this.path.slice(i, this.path.length - 4);

but it do not work.

This topic has been closed for replies.
Correct answer leo45

Your solution doesn't help!
This will output the document number of the stamp. But I would like to have the document number of the document to be stamped!

1 reply

try67
Community Expert
Community Expert
October 4, 2024

event.value = this.documentFileName;

leo45AuthorCorrect answer
Participant
October 5, 2024

Your solution doesn't help!
This will output the document number of the stamp. But I would like to have the document number of the document to be stamped!

try67
Community Expert
Community Expert
October 5, 2024

Use this:

event.value = event.source.source.documentFileName;

 

In the future, try being a bit more polite when asking for help... I didn't notice this was supposed to be in a stamp (although you did mention it in the title). These things happen.