Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Java-script in Stamp

Community Beginner ,
Oct 04, 2024 Oct 04, 2024

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.

570
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Beginner ,
Oct 05, 2024 Oct 05, 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!

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 04, 2024 Oct 04, 2024

event.value = this.documentFileName;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 05, 2024 Oct 05, 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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 05, 2024 Oct 05, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 05, 2024 Oct 05, 2024
LATEST

Sorry

This is my first time in this forum and I'm surprised at how quickly I received a competent answer.

I promise to express myself more precisely in the future.

Thank you for your help

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines